From owner-freebsd-questions@FreeBSD.ORG Mon Nov 12 14:10:00 2007 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 204D716A419 for ; Mon, 12 Nov 2007 14:10:00 +0000 (UTC) (envelope-from jwb@hera.homer.att.com) Received: from mail120.messagelabs.com (mail120.messagelabs.com [216.82.250.83]) by mx1.freebsd.org (Postfix) with ESMTP id CDF1F13C4A6 for ; Mon, 12 Nov 2007 14:09:59 +0000 (UTC) (envelope-from jwb@hera.homer.att.com) X-VirusChecked: Checked X-Env-Sender: jwb@hera.homer.att.com X-Msg-Ref: server-9.tower-120.messagelabs.com!1194874991!26221578!1 X-StarScan-Version: 5.5.12.14.2; banners=-,-,- X-Originating-IP: [144.160.20.53] Received: (qmail 2900 invoked from network); 12 Nov 2007 13:43:12 -0000 Received: from sbcsmtp6.sbc.com (HELO mlph073.enaf.sfdc.sbc.com) (144.160.20.53) by server-9.tower-120.messagelabs.com with AES256-SHA encrypted SMTP; 12 Nov 2007 13:43:12 -0000 Received: from enaf.sfdc.sbc.com (localhost.localdomain [127.0.0.1]) by mlph073.enaf.sfdc.sbc.com (8.14.0/8.14.0) with ESMTP id lACDh9WE020701; Mon, 12 Nov 2007 08:43:09 -0500 Received: from mlph070.sfdc.sbc.com (mlph070.sfdc.sbc.com [144.155.224.139]) by mlph073.enaf.sfdc.sbc.com (8.14.0/8.14.0) with ESMTP id lACDh3nu020634; Mon, 12 Nov 2007 08:43:04 -0500 Received: from sfdc.sbc.com (localhost.localdomain [127.0.0.1]) by mlph070.sfdc.sbc.com (8.14.0/8.14.0) with ESMTP id lACDh3Nl027103; Mon, 12 Nov 2007 08:43:03 -0500 Received: from ulysses.homer.att.com (ulysses.homer.att.com [135.205.193.8]) by mlph070.sfdc.sbc.com (8.14.0/8.14.0) with ESMTP id lACDgwNt026991; Mon, 12 Nov 2007 08:42:59 -0500 Received: from hera.homer.att.com (hera.homer.att.com [135.205.193.102]) by ulysses.homer.att.com (8.9.3/8.9.3) with ESMTP id IAA11484; Mon, 12 Nov 2007 08:42:27 -0500 (EST) Received: from hera.homer.att.com (localhost [127.0.0.1]) by hera.homer.att.com (8.9.3/8.9.3) with ESMTP id IAA04032; Mon, 12 Nov 2007 08:42:27 -0500 (EST) Message-Id: <200711121342.IAA04032@hera.homer.att.com> X-Mailer: exmh version 2.7.2 01/07/2005 with nmh-1.0.4 To: matti k In-Reply-To: Message from matti k of "Sat, 10 Nov 2007 10:24:14 +1100." <20071110102414.25b66271@platypus.freebsd.home> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Mon, 12 Nov 2007 08:42:27 -0500 From: "J. W. Ballantine" Cc: freebsd-questions@freebsd.org Subject: Re: pkgdb failure X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Nov 2007 14:10:00 -0000 Yes, seems you need to rebuild ruby, for safety I also rebuilt ruby-bdb and portupgrade. I then moved /var/db/pkg/pkgdb.db and ran pkgdb -fu. Then it was safe to run portupgrade. This is probably overkill, but it worked for me. Jim ---------- In Response to your message ------------- > Date: Sat, 10 Nov 2007 10:24:14 +1100 > To: "J. W. Ballantine" > From: matti k > Subject: Re: pkgdb failure > > On Fri, 09 Nov 2007 08:06:54 -0500 > "J. W. Ballantine" wrote: > > > After upgrading from 6-STABLE to 7-RELEASE, I tried to rebuild > > all the packages from portupgrade -af I started getting the following > > error messages. The first once, the second multiple times, even > > after I moved the pkgdb.db and did a pkgdb -fu. > > > > [/usr/ports/INDEX-7.db: unexpected file type or format -- Invalid > > argument] [Updating the portsdb in /usr/ports . > > .. - 17746 port entries found /usr/ports/INDEX-7.db: unexpected file > > type or format -- Invalid argument: Cannot update the portsdb! > > (/usr/ports/INDEX-7.db)] > > > > > > /var/db/pkg/pkgdb.db: unexpected file type or format -- Invalid > > argument > > > > Any ideas on what is causing this? > > I got this as well, after portupgrade tried to register installation of > new ruby version. A pkgdb -F seemed to correct it and i continued on > with portupgrade with no more errors. > > Regards, > Matti >