From owner-freebsd-ports@FreeBSD.ORG Fri Jul 7 22:39:36 2006 Return-Path: X-Original-To: ports@freebsd.org Delivered-To: freebsd-ports@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EC17F16A4DF for ; Fri, 7 Jul 2006 22:39:35 +0000 (UTC) (envelope-from jeff.cross@averageadmins.com) Received: from S4.cableone.net (s4.cableone.net [24.116.0.230]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9C40E43D46 for ; Fri, 7 Jul 2006 22:39:35 +0000 (GMT) (envelope-from jeff.cross@averageadmins.com) Received: from [172.16.0.100] (unverified [24.117.52.220]) by S4.cableone.net (CableOne SMTP Service S4) with ESMTP id 65919510 for ; Fri, 07 Jul 2006 15:39:35 -0700 Message-ID: <44AEE2A2.3080801@averageadmins.com> Date: Fri, 07 Jul 2006 17:39:30 -0500 From: Jeff Cross User-Agent: Thunderbird 1.5.0.4 (X11/20060605) MIME-Version: 1.0 To: ports@freebsd.org X-Enigmail-Version: 0.94.0.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-IP-stats: Incoming Last 10, First 52, in=11, out=0, spam=0 X-External-IP: 24.117.52.220 X-Abuse-Info: Send abuse complaints to abuse@cableone.net Cc: Subject: pkgdb errors after portupgrade -varR X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Jul 2006 22:39:36 -0000 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 in /var/db/pkg ... /var/db/pkg/pkgdb.db: unexpected file type or format -- Invalid argument; rebuild needed] [Rebuilding the pkgdb 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 in /var/db/pkg ... /var/db/pkg/pkgdb.db: unexpected file type or format -- Invalid argument; rebuild needed] [Rebuilding the pkgdb in /var/db/pkg ... [Updating the pkgdb in /var/db/pkg ... /var/db/pkg/pkgdb.db: unexpected file type or format -- Invalid argument; rebuild needed] [Rebuilding the pkgdb 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 in /var/db/pkg ... /var/db/pkg/pkgdb.db: unexpected file type or format -- Invalid argument; rebuild needed] [Rebuilding the pkgdb 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/