From owner-freebsd-questions@FreeBSD.ORG Sun Jul 2 22:51:14 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4F35D16A407 for ; Sun, 2 Jul 2006 22:51:14 +0000 (UTC) (envelope-from wmoran@collaborativefusion.com) Received: from mx00.pub.collaborativefusion.com (mx00.pub.collaborativefusion.com [206.210.89.199]) by mx1.FreeBSD.org (Postfix) with ESMTP id C91044451E for ; Sun, 2 Jul 2006 22:51:13 +0000 (GMT) (envelope-from wmoran@collaborativefusion.com) Received: from localhost (monrovll-cuda1-24-53-251-44.pittpa.adelphia.net [24.53.251.44]) (AUTH: LOGIN wmoran, TLS: TLSv1/SSLv3,256bits,AES256-SHA) by wingspan with esmtp; Sun, 02 Jul 2006 18:51:12 -0400 id 00056405.44A84DE0.00003B9E Date: Sun, 2 Jul 2006 18:51:11 -0400 From: Bill Moran To: "E. J. Cerejo" Message-Id: <20060702185111.96cc0e0a.wmoran@collaborativefusion.com> In-Reply-To: <20060702205752.89100.qmail@web61016.mail.yahoo.com> References: <20060702205752.89100.qmail@web61016.mail.yahoo.com> Organization: Collaborative Fusion X-Mailer: Sylpheed version 2.2.6 (GTK+ 2.8.19; i386-portbld-freebsd6.1) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: Portupgrade 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: Sun, 02 Jul 2006 22:51:14 -0000 "E. J. Cerejo" wrote: > I'm running FreeBSD 6.1 release and after upgrading portupgrade using portupgrade itself I'm getting this message (message bellow) or similar one everytime I run one of the portupgrade commands like pkgdb -u or -F, portversion -L = or portupgrade itself. Tells me that the database needs to be rebuild, I run portsdb -uU and I get this same error message (message bellow) it rebuilds with portsdb -fuU but still get this same message. > > Error Message: > > [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 > > any clues on how to solve this? When was the last time you did a cvsup? Portupgrade was hosed for a few days there, if your ports tree previously installed the hosted version, portupgrade won't work. If this is the case, the solution is: 1) cvsup ports 2) pkg_delete portupgrade 3) cd /usr/ports/sysutils/portupgrade && make install clean Portupgrade will then start working again. -- Bill Moran Sometimes I think I'm stupid. The rest of the time I'm sure of it.