From owner-freebsd-questions@FreeBSD.ORG Fri Apr 27 17:58:05 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 664F916A406 for ; Fri, 27 Apr 2007 17:58:05 +0000 (UTC) (envelope-from freebsd-questions-local@be-well.ilk.org) Received: from mail3.sea5.speakeasy.net (mail3.sea5.speakeasy.net [69.17.117.5]) by mx1.freebsd.org (Postfix) with ESMTP id 44B1813C4BE for ; Fri, 27 Apr 2007 17:58:05 +0000 (UTC) (envelope-from freebsd-questions-local@be-well.ilk.org) Received: (qmail 20568 invoked from network); 27 Apr 2007 17:58:04 -0000 Received: from dsl092-078-145.bos1.dsl.speakeasy.net (HELO be-well.ilk.org) ([66.92.78.145]) (envelope-sender ) by mail3.sea5.speakeasy.net (qmail-ldap-1.03) with SMTP for ; 27 Apr 2007 17:58:04 -0000 Received: by be-well.ilk.org (Postfix, from userid 1147) id 3169A2842D; Fri, 27 Apr 2007 13:58:04 -0400 (EDT) To: Drew Tomlinson References: <4631EB20.20808@mykitchentable.net> <4631F760.80809@daleco.biz> <44hcr2x7ev.fsf@be-well.ilk.org> <46320CF8.90002@mykitchentable.net> From: Lowell Gilbert Date: Fri, 27 Apr 2007 13:58:04 -0400 In-Reply-To: <46320CF8.90002@mykitchentable.net> (Drew Tomlinson's message of "Fri\, 27 Apr 2007 07\:47\:20 -0700") Message-ID: <44abwtu2c3.fsf@be-well.ilk.org> User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.97 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: FreeBSD Questions Subject: Re: How to Upgrade Portupgrade? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: FreeBSD Questions List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 Apr 2007 17:58:05 -0000 Drew Tomlinson writes: > Thanks for all the replies. Funny thing is that when trying the > "portupgrade -o" solution and using "pkg_info | grep portupgrade", no > results were returned. The /var/db/pkg directory had no portupgrade* > entries. Thus I just used "portupgrade -N portupgrade" to upgrade. > All seemed OK. I did notice a "make config" window that asked me > which version of Berkeley DB to use for the backend. Not knowing, I > just chose the default of ">=2" and the port built without error. Missing entries in the package database? Could be a problem, although more likely it's just a mistake of some sort. > Next I attempted "pkgdb -L" suggested in the pkg-message file. It > returned this error: > > blacksheep# pkgdb -L > [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!] > > I assume this is due to choosing the incorrect Berkeley DB version? > So should I rebuild the portupgrade port and choose Berkeley DB 1.85 > or is it recommended to convert the pkgdb to the newer version? If I > should convert, how? My build machine is powered down today, so I can't get the exact answer, but it was in /usr/ports/UPDATING at the time.