From owner-freebsd-questions@FreeBSD.ORG Sat May 6 21:45:31 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 F1FB916A400 for ; Sat, 6 May 2006 21:45:30 +0000 (UTC) (envelope-from beech@mangohealth.org) Received: from pinnacle.akherb.com (60-105-237-24.gci.net [24.237.105.60]) by mx1.FreeBSD.org (Postfix) with ESMTP id 76BAC43D55 for ; Sat, 6 May 2006 21:45:30 +0000 (GMT) (envelope-from beech@mangohealth.org) Received: by pinnacle.akherb.com (Postfix, from userid 1007) id A6B475D1F; Sat, 6 May 2006 13:45:29 -0800 (AKDT) X-Spam-Checker-Version: SpamAssassin 3.1.1 (2006-03-10) on pinnacle.akherb.com X-Spam-Level: X-Spam-Status: No, score=-1.7 required=4.0 tests=AWL,BAYES_00 autolearn=ham version=3.1.1 Received: from [192.168.241.108] (7-137-58-66.gci.net [66.58.137.7]) by pinnacle.akherb.com (Postfix) with ESMTP id 7A1D75C92; Sat, 6 May 2006 13:45:28 -0800 (AKDT) From: Beech Rintoul Organization: Mangohealth To: freebsd-questions@freebsd.org Date: Sat, 6 May 2006 13:45:49 -0800 User-Agent: KMail/1.9.1 References: In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart1679086.ORSeqtDbOE"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200605061346.06072.beech@mangohealth.org> Cc: Arno Schleich 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: Sat, 06 May 2006 21:45:31 -0000 --nextPart1679086.ORSeqtDbOE Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Saturday 06 May 2006 13:28, Arno Schleich wrote: > Dear all, > > I have observed the following behavior in portupgrade: > > The operation > > portugrade -a > > results in a repetitive rebuild of the package database whenever the > database is accessed. > > [Updating the pkgdb in /var/db/pkg ... Inappropriate fi= le > type or format - /var/db/pkg/pkgdb; rebuild needed] [Rebuilding the pkgdb > in /var/db/pkg ... - 435 packages found (-0 +435) > .........................................................................= =2E. >..........................................................................= =2E. >..........................................................................= =2E. >..........................................................................= =2E. >..........................................................................= =2E. >........................................................ done] > ---> Backing up the old version > [Updating the pkgdb in /var/db/pkg ... Failed > `Inappropriate file type or format'; rebuild needed] [Rebuilding the pkgdb > in /var/db/pkg ... - 435 packages found (-0 +435) > .........................................................................= =2E. >..........................................................................= =2E. >..........................................................................= =2E. >..........................................................................= =2E. >..........................................................................= =2E. >........................................................ done] > ---> Uninstalling the old version > [Updating the pkgdb in /var/db/pkg ... Inappropriate fi= le > type or format - /var/db/pkg/pkgdb; rebuild needed] [Rebuilding the pkgdb > in /var/db/pkg ... - 435 packages found (-0 +435) > .........................................................................= =2E. >........................... > > > Is this a bug or a feature ? > > What can be done to suppress this behavior of portupgrade -a ? > > Thanks, Arno Sounds like your pkgdb is corrupt. Try doing "pkgdb -fu" (without the quote= s),=20 if that doesn't work rename or rm /var/db/pkg/pkgdb.db and run the command= =20 again to build a new pkgdb. Beech =2D-=20 =2D------------------------------------------------------------------------= =2D------------- Beech Rintoul - Sys. Administrator - beech@mangohealth.org /"\ ASCII Ribbon Campaign | Mangohealth \ / - NO HTML/RTF in e-mail | 201 East 9Th Avenue Ste.310 X - NO Word docs in e-mail | Anchorage, AK 99501 / \ - XanGo - http://www.mangohealth.org =2D------------------------------------------------------------------------= =2D------------- --nextPart1679086.ORSeqtDbOE Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (FreeBSD) iD8DBQBEXRkd2TFLCHYGSF0RAgaaAJ0WCySwVinmgLX62tsuWdKfk4T7+QCgg0on llTA4nbW19ZfNOyNiw30D2g= =7A97 -----END PGP SIGNATURE----- --nextPart1679086.ORSeqtDbOE--