From owner-freebsd-stable@FreeBSD.ORG Sun Jul 2 13:35:59 2006 Return-Path: X-Original-To: freebsd-stable@freebsd.org Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 03C9516A412 for ; Sun, 2 Jul 2006 13:35:59 +0000 (UTC) (envelope-from vladgalu@gmail.com) Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.186]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4803E43D60 for ; Sun, 2 Jul 2006 13:35:57 +0000 (GMT) (envelope-from vladgalu@gmail.com) Received: by nf-out-0910.google.com with SMTP id c29so592273nfb for ; Sun, 02 Jul 2006 06:35:56 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=DpyyJsXEtizA9e1fKQRlt4+rAQbmErfs801jWgPLQbcurta1bTBTUh3+omb0EjmhWnV87w9vPR8sr3DADOwHHs+9se54ouOMaNbAG6UvCvSida7xHik1r/DB5UiuQEFaOUFz3dKcjqy6j2I276UtYh3hElg3XEjw3ON45Hnk3V8= Received: by 10.49.21.14 with SMTP id y14mr1637106nfi; Sun, 02 Jul 2006 06:35:56 -0700 (PDT) Received: by 10.48.250.2 with HTTP; Sun, 2 Jul 2006 06:35:55 -0700 (PDT) Message-ID: <79722fad0607020635i53ffc6clca3e9cf7b50fe101@mail.gmail.com> Date: Sun, 2 Jul 2006 16:35:55 +0300 From: "Vlad GALU" To: freebsd-stable@freebsd.org In-Reply-To: <200607021408.33744.dzalewski@open-craft.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <200607021408.33744.dzalewski@open-craft.com> Subject: Re: Portupgrade failed - /var/db/pkg/pkgdb.db: unexpected file type or format X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 02 Jul 2006 13:35:59 -0000 On 7/2/06, Dominik Zalewski wrote: > I'm using FreeBSD 6.1-stable . Today I updated my ports tree using cvsup and > then I ran as usually portupgrade -a . It upgraded my portupgrade to version > portupgrade-2.1.3.2,2. After that portupgrade stopped working. > > Here is an error message: > > [root@silicon /]# portupgrade -a > [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 Removing pkgdb.db and INDEX-6.db and then rebuilding them with pkgdb and portsdb did the trick for me. > > Any ideas? > > Thank you in advance, > > Dominik Zalewski > _______________________________________________ > freebsd-stable@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-stable > To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org" > -- If it's there, and you can see it, it's real. If it's not there, and you can see it, it's virtual. If it's there, and you can't see it, it's transparent. If it's not there, and you can't see it, you erased it.