Portupgrade cannot upgrade pkgdb.db

Matthew Seaman m.seaman at infracaninophile.co.uk
Wed Nov 8 12:41:33 PST 2006


Jason Gretz wrote:
> Hey guys, I got this output when I tried upgrading my ports tree
> (portupgrade --a) :
>  
> [Updating the pkgdb <format:bdb_btree> in /var/db/pkg ...
> /var/db/pkg/pkgdb.db: unexpected file type or format -- Invalid argument;
> rebuild needed] [Rebuilding the pkgdb <format:bdb_btree> in /var/db/pkg ...
> [Updating the pkgdb <format:bdb_btree> in /var/db/pkg ...
> /var/db/pkg/pkgdb.db: unexpected file type or format -- Invalid argument;
> rebuild needed] [Rebuilding the pkgdb <format:bdb_btree> in /var/db/pkg ...
> /var/db/pkg/pkgdb.db: unexpected file type or format -- Invalid argument:
> Cannot update the pkgdb!]: Cannot update the pkgdb!]
>  
>  
>  
> Any Ideas? Thanks guys!

Yes.  Seems you updated BDB or switched versions to an incombatible one.
Blow away /usr/ports/INDEX-6.db and /var/db/pkg/pkgdb.db and let portupgrade
regenerate them from scratch.  Those files are just summaries of other data
readily available from your system so they can be removed with impunity.

	Cheers,

	Matthew

-- 
Dr Matthew J Seaman MA, D.Phil.                       7 Priory Courtyard
                                                      Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey         Ramsgate
                                                      Kent, CT11 9PW

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 250 bytes
Desc: OpenPGP digital signature
Url : http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20061108/bd62625a/signature.pgp


More information about the freebsd-ports mailing list