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

Dominik Zalewski dzalewski at open-craft.com
Sun Jul 2 13:39:38 UTC 2006


On Sunday 02 July 2006 16:34, you wrote:
> 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

Thanks. I rebuild my pkgdb.db and it looks everything is fine.

Thank you,

        Dominik Zalewski


More information about the freebsd-stable mailing list