From owner-freebsd-questions@FreeBSD.ORG Wed Jul 5 07:21:34 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 D6FB016A4DE for ; Wed, 5 Jul 2006 07:21:34 +0000 (UTC) (envelope-from freebsd@psam.se) Received: from kingpin.cenara.com (mail1.cenara.com [193.111.152.3]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1597243D4C for ; Wed, 5 Jul 2006 07:21:33 +0000 (GMT) (envelope-from freebsd@psam.se) Received: from caspian ([83.209.104.130]) by kingpin.cenara.com (8.12.10/8.12.10) with ESMTP id k657LVC7025808; Wed, 5 Jul 2006 09:21:31 +0200 Received: from [127.0.0.1] ([83.209.104.131]) (authenticated user peter@psam.se) by caspian (Kerio MailServer 6.1.0); Wed, 5 Jul 2006 09:21:41 +0200 Message-ID: <44AB686B.7040003@psam.se> Date: Wed, 05 Jul 2006 09:21:15 +0200 From: Psadi User-Agent: Thunderbird 1.5.0.4 (Windows/20060516) MIME-Version: 1.0 To: jan gestre References: <20060702205752.89100.qmail@web61016.mail.yahoo.com> <20060702185111.96cc0e0a.wmoran@collaborativefusion.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Antivirus: avast! (VPS 0627-0, 2006-07-03), Outbound message X-Antivirus-Status: Clean 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: Wed, 05 Jul 2006 07:21:34 -0000 HI This problem is that the /var/db/pkg/pkgdb.db has been damaged. What you need to do is to build a new pkgdb.db file First cd /var/db/pkg save the old pkgdb by mv pkgdb.db -> pkgdb.old then you run pkgdb -u after that you should be up and running again. Psadi jan gestre skrev: > On 7/3/06, Bill Moran wrote: >> >> "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. >> >> i always do a cvsup before upgrading the ports but i got the same >> problem, > pkg_delete did not work coz it can't see the portupgrade version that is > installed so i did a make deinstall and make reinstall instead but > with the > same result, any idea how will i solve this? > > TIA > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "freebsd-questions-unsubscribe@freebsd.org" > >