Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 2 Nov 2007 16:55:01 -0500
From:      Jeffrey Goldberg <jeffrey@goldmark.org>
To:        Kevin Kinsey <kdk@daleco.biz>
Cc:        FreeBSD_Questions FreeBSD_Questions <freebsd-questions@freebsd.org>
Subject:   Re: pkgdb.db: unexpected file type or format
Message-ID:  <09A71220-B6C1-4A34-AD65-95A4A475D71E@goldmark.org>
In-Reply-To: <472B94D0.8070104@daleco.biz>
References:  <E6EEC201-0F50-4442-A989-9BA05D4E03C1@goldmark.org> <472B94D0.8070104@daleco.biz>

next in thread | previous in thread | raw e-mail | index | archive | help
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/




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?09A71220-B6C1-4A34-AD65-95A4A475D71E>