From owner-freebsd-ports@FreeBSD.ORG Mon Oct 9 15:56:33 2006 Return-Path: X-Original-To: freebsd-ports@freebsd.org Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EC02716A412 for ; Mon, 9 Oct 2006 15:56:33 +0000 (UTC) (envelope-from dthomas53@gmail.com) Received: from wx-out-0506.google.com (wx-out-0506.google.com [66.249.82.229]) by mx1.FreeBSD.org (Postfix) with ESMTP id 97EF143D53 for ; Mon, 9 Oct 2006 15:56:27 +0000 (GMT) (envelope-from dthomas53@gmail.com) Received: by wx-out-0506.google.com with SMTP id i27so1529828wxd for ; Mon, 09 Oct 2006 08:56:26 -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=OasBMn9RoIlJSoaN5SR2mPP473M98C+HlJoIJrBZ3J3m5pA5gdPLOVznTvdjEWq3lzN+lMrtvdQ2EfqkSR8Be7PHjhMUyP4X5CJpyJSgg1ykEUbSm6j3vnbLwfpcxygm4Hlmy7xGF3Bb8KWDRkI6zpbqUT/FAwj9d+xyT3zxKEA= Received: by 10.90.90.16 with SMTP id n16mr2746608agb; Mon, 09 Oct 2006 08:56:26 -0700 (PDT) Received: by 10.90.117.20 with HTTP; Mon, 9 Oct 2006 08:56:26 -0700 (PDT) Message-ID: Date: Mon, 9 Oct 2006 11:56:26 -0400 From: "David Stanford" To: "Wernher Eksteen" In-Reply-To: <880eb6180610090841j423789a0obdc62ecec8bf910f@mail.gmail.com> MIME-Version: 1.0 References: <880eb6180610090841j423789a0obdc62ecec8bf910f@mail.gmail.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: freebsd-ports@freebsd.org Subject: Re: portupgrade -varR X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 Oct 2006 15:56:34 -0000 On 10/9/06, Wernher Eksteen wrote: > > Hi all, > > New to your list, so please forgive if I'm not doing this right, in which > case please show me the way :) > > I have this issue when running portupgrade; > > /usr/local/sbin/portupgrade -varR > ---> Session started at: Mon, 09 Oct 2006 15:12:24 +0100 > [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 > ---> Session ended at: Mon, 09 Oct 2006 15:12:26 +0100 (consumed > 00:00:01) > > I'm pretty new to using Portupgrade, and need some help with this. No idea > what this means or how to fix it. > Any pointers would be much appreciated! Wernher, For general questions you should send emails to the freebsd-questions list. Regarding your question, I believe the problem is that you recently upgraded your Berkeley DB and/or portupgrade and now your version of portupgrade is incompatible with the previous database. I had this problem a while back and if I remember correctly you have to delete your previous portupgrade database and running it afterwards will just create a new one. However, I don't remember how I did this so I would suggest mailing the questions list as I'm sure someone there will have the answer. -David -- [root@fbsd ~]# fortune Happiness is just an illusion, filled with sadness and confusion.