Portupgrade failed - /var/db/pkg/pkgdb.db: unexpected file type or format

Volker volker at vwsoft.com
Sun Jul 2 13:34:12 UTC 2006


On 12/23/-58 20:59, Dominik Zalewski wrote:
> I'm using FreeBSD 6.1-stable . Today I updated my ports tree using cvsup and 
> then I ran as usually portupgrade -a . It upgraded my portupgrade to version 
> portupgrade-2.1.3.2,2. After that portupgrade stopped working.
> 
> in /var/db/pkg ... /var/db/pkg/pkgdb.db: unexpected file type or format -- 

Dominik,

I've had the same today and thought it has been my mistake (doing a
pkg_version in parallel).

Just delete /var/db/pkg/pkgdb.db and run `pkgdb -F' and all should
be fine. At least on my system I was able to rebuild pkgdb.db that
way and all is working again.

Greetings,

Volker



More information about the freebsd-stable mailing list