From owner-freebsd-ports@FreeBSD.ORG Wed Nov 8 20:41: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 4BCD016A4AB for ; Wed, 8 Nov 2006 20:41:33 +0000 (UTC) (envelope-from m.seaman@infracaninophile.co.uk) Received: from smtp.infracaninophile.co.uk (happy-idiot-talk.infracaninophile.co.uk [81.187.76.162]) by mx1.FreeBSD.org (Postfix) with ESMTP id 589A044027 for ; Wed, 8 Nov 2006 20:38:20 +0000 (GMT) (envelope-from m.seaman@infracaninophile.co.uk) Received: from [IPv6:::1] (localhost [IPv6:::1]) by smtp.infracaninophile.co.uk (8.13.8/8.13.8) with ESMTP id kA8Kbjh8037900; Wed, 8 Nov 2006 20:37:45 GMT (envelope-from m.seaman@infracaninophile.co.uk) Authentication-Results: smtp.infracaninophile.co.uk from=m.seaman@infracaninophile.co.uk; sender-id=softfail; spf=softfail X-SenderID: Sendmail Sender-ID Filter v0.2.14 smtp.infracaninophile.co.uk kA8Kbjh8037900 Message-ID: <45524018.5070504@infracaninophile.co.uk> Date: Wed, 08 Nov 2006 20:37:44 +0000 From: Matthew Seaman Organization: Infracaninophile User-Agent: Thunderbird 1.5.0.7 (X11/20061015) MIME-Version: 1.0 To: Jason Gretz References: <20061108181005.BF1482E04B@mail.angstman.com> In-Reply-To: <20061108181005.BF1482E04B@mail.angstman.com> X-Enigmail-Version: 0.94.0.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="------------enig404CDCD7D921B91F0292C662" X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.0.2 (smtp.infracaninophile.co.uk [IPv6:::1]); Wed, 08 Nov 2006 20:38:05 +0000 (GMT) X-Virus-Scanned: ClamAV version 0.88.6, clamav-milter version 0.88.6 on happy-idiot-talk.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00, DKIM_POLICY_TESTING, NO_RELAYS autolearn=ham version=3.1.7 X-Spam-Checker-Version: SpamAssassin 3.1.7 (2006-10-05) on happy-idiot-talk.infracaninophile.co.uk Cc: freebsd-ports@freebsd.org Subject: Re: Portupgrade cannot upgrade pkgdb.db 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: Wed, 08 Nov 2006 20:41:33 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig404CDCD7D921B91F0292C662 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: quoted-printable Jason Gretz wrote: > Hey guys, I got this output when I tried upgrading my ports tree > (portupgrade --a) : > =20 > [Updating the pkgdb in /var/db/pkg ... > /var/db/pkg/pkgdb.db: unexpected file type or format -- Invalid argumen= t; > 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 argumen= t; > rebuild needed] [Rebuilding the pkgdb in /var/db/pkg= ... > /var/db/pkg/pkgdb.db: unexpected file type or format -- Invalid argumen= t: > Cannot update the pkgdb!]: Cannot update the pkgdb!] > =20 > =20 > =20 > Any Ideas? Thanks guys! Yes. Seems you updated BDB or switched versions to an incombatible one. Blow away /usr/ports/INDEX-6.db and /var/db/pkg/pkgdb.db and let portupgr= ade regenerate them from scratch. Those files are just summaries of other da= ta readily available from your system so they can be removed with impunity. Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard Flat 3 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate Kent, CT11 9PW --------------enig404CDCD7D921B91F0292C662 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFFUkAY8Mjk52CukIwRCFqJAJ0W2D2yjrGa3ovEDVg22jECEcaLyQCfQGch IaM5NHKj4AnsPDn0ugB1tqE= =7+jE -----END PGP SIGNATURE----- --------------enig404CDCD7D921B91F0292C662--