Dominik Zalewski
2006-Jul-02 11:47 UTC
Portupgrade failed - /var/db/pkg/pkgdb.db: unexpected file type or format
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. Here is an error message: [root@silicon /]# 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!] Command failed [exit code 1]: /usr/local/sbin/pkgdb -aFQ Any ideas? Thank you in advance, Dominik Zalewski
Volker
2006-Jul-02 13:34 UTC
Portupgrade failed - /var/db/pkg/pkgdb.db: unexpected file type or format
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
Vlad GALU
2006-Jul-02 13:36 UTC
Portupgrade failed - /var/db/pkg/pkgdb.db: unexpected file type or format
On 7/2/06, Dominik Zalewski <dzalewski@open-craft.com> 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. > > Here is an error message: > > [root@silicon /]# 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!] > Command failed [exit code 1]: /usr/local/sbin/pkgdb -aFQRemoving pkgdb.db and INDEX-6.db and then rebuilding them with pkgdb and portsdb did the trick for me.> > Any ideas? > > Thank you in advance, > > Dominik Zalewski > _______________________________________________ > freebsd-stable@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-stable > To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org" >-- If it's there, and you can see it, it's real. If it's not there, and you can see it, it's virtual. If it's there, and you can't see it, it's transparent. If it's not there, and you can't see it, you erased it.