From owner-freebsd-questions@FreeBSD.ORG Sat Nov 10 03:56:53 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 64E5B16A420 for ; Sat, 10 Nov 2007 03:56:53 +0000 (UTC) (envelope-from matti.k@bigpond.net.au) Received: from qsrv01sl.mx.bigpond.com (qsrv01sl.mx.bigpond.com [144.140.92.181]) by mx1.freebsd.org (Postfix) with ESMTP id 0C65313C48A for ; Sat, 10 Nov 2007 03:56:51 +0000 (UTC) (envelope-from matti.k@bigpond.net.au) Received: from oaamta06sl.mx.bigpond.com ([121.210.37.128]) by omta04sl.mx.bigpond.com with ESMTP id <20071109232415.QJDY1805.omta04sl.mx.bigpond.com@oaamta06sl.mx.bigpond.com> for ; Fri, 9 Nov 2007 23:24:15 +0000 Received: from platypus.freebsd.home ([121.210.37.128]) by oaamta06sl.mx.bigpond.com with ESMTP id <20071109232415.CPPK10383.oaamta06sl.mx.bigpond.com@platypus.freebsd.home>; Fri, 9 Nov 2007 23:24:15 +0000 Date: Sat, 10 Nov 2007 10:24:14 +1100 From: matti k To: "J. W. Ballantine" Message-ID: <20071110102414.25b66271@platypus.freebsd.home> In-Reply-To: <200711091306.IAA15690@akiva.homer.att.com> References: <200711091306.IAA15690@akiva.homer.att.com> X-Mailer: Claws Mail 3.0.2 (GTK+ 2.12.1; i386-portbld-freebsd8.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit 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: Sat, 10 Nov 2007 03:56:53 -0000 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