From owner-freebsd-questions@FreeBSD.ORG Fri Nov 2 21:55:17 2007 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D27E916A420 for ; Fri, 2 Nov 2007 21:55:17 +0000 (UTC) (envelope-from jeffrey@goldmark.org) Received: from out1.smtp.messagingengine.com (out1.smtp.messagingengine.com [66.111.4.25]) by mx1.freebsd.org (Postfix) with ESMTP id AC61A13C48D for ; Fri, 2 Nov 2007 21:55:17 +0000 (UTC) (envelope-from jeffrey@goldmark.org) Received: from compute1.internal (compute1.internal [10.202.2.41]) by out1.messagingengine.com (Postfix) with ESMTP id 65160453C2; Fri, 2 Nov 2007 17:55:02 -0400 (EDT) Received: from heartbeat2.messagingengine.com ([10.202.2.161]) by compute1.internal (MEProxy); Fri, 02 Nov 2007 17:55:02 -0400 X-Sasl-enc: IhMbGYOnXIvXYomqnOEN6SqNQ422dVl0fJ5PqLVPlhLJ 1194040502 Received: from [10.1.10.136] (n114.ewd.goldmark.org [72.64.118.114]) by mail.messagingengine.com (Postfix) with ESMTP id 061272759D; Fri, 2 Nov 2007 17:55:01 -0400 (EDT) Message-Id: <09A71220-B6C1-4A34-AD65-95A4A475D71E@goldmark.org> From: Jeffrey Goldberg To: Kevin Kinsey In-Reply-To: <472B94D0.8070104@daleco.biz> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v912) Date: Fri, 2 Nov 2007 16:55:01 -0500 References: <472B94D0.8070104@daleco.biz> X-Mailer: Apple Mail (2.912) Cc: FreeBSD_Questions FreeBSD_Questions Subject: Re: pkgdb.db: unexpected file type or format X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Nov 2007 21:55:17 -0000 On Nov 2, 2007, at 4:21 PM, Kevin Kinsey wrote: > Jeffrey Goldberg wrote: > >> $ sudo pkgdb -v -F >> ---> Checking the package registry database >> /var/db/pkg/pkgdb.db: unexpected file type or format -- Invalid >> argument >> $ sudo file /var/db/pkg/pkgdb.db >> /var/db/pkg/pkgdb.db: Berkeley DB 1.85 (Hash, version 2, native >> byte-order) >> >> I've seen no responses, I got a response off list suggesting that I simply remove pkgdb.db and call portupgrade which would rebuild it. I tried that (well I renamed pkgdb.db) and things seemed to go well for a few seconds, but portupgrade then barfed at the portsdb.db file. So I fixed that with portsdb -F and then running portupgrade seems to have done the right thing and all is well at the moment. > First off, what does `file /var/db/pkg/pkgdb.db` report? You must have missed that I had that information in my original post. > > And have you looked at pkgdb(5)? I'm only guessing, but > maybe `pkgdb -aF` for starters, I also had the output of pkgdb -v -F in my original post. But I do see that the formating of my post made that difficult to see. Anyway, thank you for your help. Everything seems to be going well at the moment. Cheers, -j -- Jeffrey Goldberg http://www.goldmark.org/jeff/