Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 07 Jul 2006 17:39:30 -0500
From:      Jeff Cross <jeff.cross@averageadmins.com>
To:        ports@freebsd.org
Subject:   pkgdb errors after portupgrade -varR
Message-ID:  <44AEE2A2.3080801@averageadmins.com>

next in thread | raw e-mail | index | archive | help
I ran portupgrade -varR last night to upgrade a number of ports.  When
it finished, or returned me to the command line, the following output
was on the screen:

** No need to upgrade 'gedit-2.14.3' (>= gedit-2.14.3). (specify -f to
force)
[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!]
--->  Session ended at: Fri, 07 Jul 2006 09:11:39 -0500 (consumed 13:21:18)
/usr/local/lib/ruby/site_ruby/1.8/pkgtools.rb:444:in `__system': Command
failed [exit code 1]: /usr/local/sbin/pkgdb -aFQ (CommandFailedError)
        from /usr/local/lib/ruby/site_ruby/1.8/pkgtools.rb:467:in `__sudo'
        from /usr/local/lib/ruby/site_ruby/1.8/pkgtools.rb:473:in `xsystem!'
        from /usr/local/lib/ruby/site_ruby/1.8/pkgdb.rb:960:in `autofix!'
        from /usr/local/lib/ruby/site_ruby/1.8/pkgdb.rb:956:in `autofix'
        from /usr/local/sbin/portupgrade:475:in `main'
        from /usr/local/sbin/portupgrade:714:in `main'
        from /usr/local/lib/ruby/1.8/optparse.rb:815:in `initialize'
        from /usr/local/sbin/portupgrade:209:in `main'
        from /usr/local/sbin/portupgrade:1951


I ran the portversion -v -l "<" and the following output was returned:

$ portversion -v -l "<"
[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

I noticed the error a number of times in the portupgrade output as well,
like:

Fri Jul  7 09:11:09 2006 (00:07 min.)
--->  Build of editors/openoffice.org-2.0 ended at: Fri, 07 Jul 2006
09:11:11 -0500 (consumed 12:40:21)
--->  Updating dependency info
--->  Uninstallation of openoffice.org-2.0.3rc6 started at: Fri, 07 Jul
2006 09:11:26 -0500
--->  Fixing up dependencies before creating a package
[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!]
--->  Uninstallation of openoffice.org-2.0.3rc6 ended at: Fri, 07 Jul
2006 09:11:28 -0500 (consumed 00:00:02)
** Command failed [exit code 1]: /usr/local/sbin/pkgdb -aFQ
--->  Skipping 'editors/openoffice.org-2.0'
--->  Upgrade of editors/openoffice.org-2.0 ended at: Fri, 07 Jul 2006
09:11:28 -0500 (consumed 12:40:38)

Any ideas on how I can correct this issue and get my ports tree and
related applications working correctly?  Can I use -w option of
portupgrade to install already compiled code or will I have to redo the
whole compiling process?

Thanks in advance!

Jeff Cross
http://www.averageadmins.com/



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?44AEE2A2.3080801>