From owner-freebsd-questions@FreeBSD.ORG Fri Nov 9 16:29:47 2007 Return-Path: Delivered-To: questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 91EA816A473 for ; Fri, 9 Nov 2007 16:29:47 +0000 (UTC) (envelope-from youshi10@u.washington.edu) Received: from mxout5.cac.washington.edu (mxout5.cac.washington.edu [140.142.32.135]) by mx1.freebsd.org (Postfix) with ESMTP id 5EEA413C4BA for ; Fri, 9 Nov 2007 16:29:47 +0000 (UTC) (envelope-from youshi10@u.washington.edu) Received: from smtp.washington.edu (smtp.washington.edu [140.142.32.139]) by mxout5.cac.washington.edu (8.13.7+UW06.06/8.13.7+UW07.09) with ESMTP id lA9GTcux026904 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Fri, 9 Nov 2007 08:29:38 -0800 X-Auth-Received: from [128.208.5.249] (lodovico.cs.washington.edu [128.208.5.249]) (authenticated authid=youshi10) by smtp.washington.edu (8.13.7+UW06.06/8.13.7+UW07.09) with ESMTP id lA9GTcqG014283 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Fri, 9 Nov 2007 08:29:38 -0800 Message-ID: <47348B37.5030500@u.washington.edu> Date: Fri, 09 Nov 2007 08:30:47 -0800 From: Garrett Cooper User-Agent: Thunderbird 2.0.0.6 (Windows/20070728) MIME-Version: 1.0 To: "J. W. Ballantine" , questions@freebsd.org References: <200711091306.IAA15690@akiva.homer.att.com> In-Reply-To: <200711091306.IAA15690@akiva.homer.att.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-PMX-Version: 5.3.3.310218, Antispam-Engine: 2.5.2.313940, Antispam-Data: 2007.11.9.80841 X-Uwash-Spam: Gauge=IIIIIII, Probability=7%, Report='LEO_OBFU_SUBJ_RE 0.1, __CT 0, __CTE 0, __CT_TEXT_PLAIN 0, __HAS_MSGID 0, __MIME_TEXT_ONLY 0, __MIME_VERSION 0, __SANE_MSGID 0, __USER_AGENT 0' Cc: 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: Fri, 09 Nov 2007 16:29:47 -0000 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? > > Thanks > > Jim Ballantine > > That generally means that for whatever reason the pkgdb couldn't be read, which may mean that you need to rebuild ruby and all affected libraries to call up 7.x libs (at least based on experience that's what's happened with me). Cheers, -Garrett