Dedicated Server Support

Tips on Linux, FreeBSD, Windows Dedicated Server.

Wednesday, July 05, 2006

Portupgrade pkgdb.db: unexpected file type or format

After upgrading FreeBSD from v6 to 6.1, i tried to upgrade all software installed on the server with portupgrade.
 
I start getting the error
 
[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!]
Command failed [exit code 1]: /usr/local/sbin/pkgdb -aFQ
 
The problem is fixed by deleting the pkgdb.db file
 
 
server26# rm /var/db/pkg/pkgdb.db
 
 

0 Comments:

Post a Comment

<< Home