From owner-freebsd-questions@FreeBSD.ORG Wed Jun 11 15:32:28 2003 Return-Path: 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 E9B3337B401 for ; Wed, 11 Jun 2003 15:32:28 -0700 (PDT) Received: from mail.gmx.net (pop.gmx.de [213.165.64.20]) by mx1.FreeBSD.org (Postfix) with SMTP id A3A9943F3F for ; Wed, 11 Jun 2003 15:32:27 -0700 (PDT) (envelope-from andreas.kohn@gmx.net) Received: (qmail 27790 invoked by uid 65534); 11 Jun 2003 22:32:26 -0000 Received: from unknown (EHLO [172.16.32.190]) (212.204.32.190) by mail.gmx.net (mp013) with SMTP; 12 Jun 2003 00:32:26 +0200 From: Andreas Kohn To: Viny In-Reply-To: <20030611220202.GA49242@tchoubou.scientiae.net> References: <20030611195110.GA48453@tchoubou.scientiae.net> <16103.41594.620810.565966@jerusalem.litteratus.org> <20030611220202.GA49242@tchoubou.scientiae.net> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-hESTwQkW3YfS8v/I8DH2" Message-Id: <1055370741.76284.22.camel@klamath.ankon.homeip.net> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.3.92 (Preview Release) Date: 12 Jun 2003 00:32:22 +0200 cc: Robert Huff cc: FREEBSD-questions Subject: Re: Pkgdb corrupted : doesn't recognized installed ports X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Jun 2003 22:32:29 -0000 --=-hESTwQkW3YfS8v/I8DH2 Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Am Thu, 2003-06-12 um 00.02 schrieb Viny: > On Wed, Jun 11, 2003 at 05:43:22PM -0400 or thereabouts, Robert Huff may = have written : > > make a copy of the db > > delete the db > > rebuild the db from scratch > >=20 > > The last may take a while, depending on how fast your machine > > is, but it may save you a lot of grief. > > Then run pkg_version (or equivalent) and update as desired. >=20 > Thanks for the answer. >=20 > What exactly do you call the db ? /var/db/pkg/pkgdb.db ? or the whole > directory /var/db/pkg ? > Upon examination it seems that some files disappeared with the crash. > Actually, some +CONTENTS files to be more precise. Which explains I can't= do > anything with these ports. > If there was a way to build /var/db/pkg from scratch I'd be very > happy =3D) Else, I plan to retrieve the cvs ports files matching the vers= ions of > the programs installed on my computer and reinstall them. > > Viny Hello,=20 I had a similar problem (crash, unexpected softupdate errors in /var, and a bombed /var/db/pkg). For me it was possible to extract the missing files from /var/lost+found, because although the directory names in the first level have been trashed, the contents were still there.=20 Depending on the amount of missing ports, and the contents of lost+found, you might be able to move the missing files to their correct position. (I used a perl script to unconditionally do that, since _nothing_ was in /var/db/pkg =3D) ) --=20 Andreas Kohn --=-hESTwQkW3YfS8v/I8DH2 Content-Type: application/pgp-signature; name=signature.asc Content-Description: Dies ist ein digital signierter Nachrichtenteil -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (FreeBSD) iD8DBQA+5630Yucd7Ow1ygwRAjpuAJoDx1XJnHCIsY0ydap8U4p4lyTZ5gCeMz51 e02V6GYI6Zb3y3mzxQ5nhXA= =4VO7 -----END PGP SIGNATURE----- --=-hESTwQkW3YfS8v/I8DH2--