From owner-freebsd-questions@FreeBSD.ORG Mon Jul 3 17:31:30 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 4FF9B16AB85 for ; Mon, 3 Jul 2006 17:31:30 +0000 (UTC) (envelope-from freebsd.ph@gmail.com) Received: from wr-out-0506.google.com (wr-out-0506.google.com [64.233.184.233]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0C3F6452F4 for ; Mon, 3 Jul 2006 17:08:43 +0000 (GMT) (envelope-from freebsd.ph@gmail.com) Received: by wr-out-0506.google.com with SMTP id i7so649611wra for ; Mon, 03 Jul 2006 10:08:43 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=B7CVK8CrPWkN9NZ4JMKvzxpQQXnokutPMkDoD1gtndeyj7c2M1q/r8FrNaNubDbRlBbybigOu0WeWT86AwgSIand8wjp2XJKL6Pc2yeZjvCnFI0dlJCqeG6ny/hqAdrFn7+1wI77QGI1XJBJXRJRjtLq+sT8Oksx6P3HObaaSCw= Received: by 10.54.93.12 with SMTP id q12mr817382wrb; Mon, 03 Jul 2006 10:08:43 -0700 (PDT) Received: by 10.54.122.11 with HTTP; Mon, 3 Jul 2006 10:08:43 -0700 (PDT) Message-ID: Date: Tue, 4 Jul 2006 01:08:43 +0800 From: "jan gestre" To: "Bill Moran" In-Reply-To: <20060702185111.96cc0e0a.wmoran@collaborativefusion.com> MIME-Version: 1.0 References: <20060702205752.89100.qmail@web61016.mail.yahoo.com> <20060702185111.96cc0e0a.wmoran@collaborativefusion.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: "E. J. Cerejo" , 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: Mon, 03 Jul 2006 17:31:30 -0000 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