From owner-freebsd-questions@FreeBSD.ORG Thu Apr 22 00:42:57 2004 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 45DBC16A4CE for ; Thu, 22 Apr 2004 00:42:57 -0700 (PDT) Received: from web10403.mail.yahoo.com (web10403.mail.yahoo.com [216.136.130.95]) by mx1.FreeBSD.org (Postfix) with SMTP id 1E54243D55 for ; Thu, 22 Apr 2004 00:42:57 -0700 (PDT) (envelope-from dbmoler@yahoo.com) Message-ID: <20040422074256.32231.qmail@web10403.mail.yahoo.com> Received: from [67.174.248.192] by web10403.mail.yahoo.com via HTTP; Thu, 22 Apr 2004 00:42:56 PDT Date: Thu, 22 Apr 2004 00:42:56 -0700 (PDT) From: David Moler To: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: broken pkgdb 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: Thu, 22 Apr 2004 07:42:57 -0000 Greetings all, I hope someone might be able to help me out. My computer crashed while I was doing a portupgrade -arR. It seems that the +CONTENTS file was lost for 100 installed packages. Following advice from various mailing lists, I've tried rebuilding the pkgdb with pkgdb -Fu (didn't fix problem) and creating empty +CONTENTS files where they were deleted and rebuilding with pkgdb -Fu (pkg_info runs okay, but pkg_version reports each package "does not appear to be a valid package!"). Others suggested deleting and reinstalling the invalid packages, but I'm reluctant to do this for 100 packages. Is there any other way? Thanks for your help. David __________________________________ Do you Yahoo!? Yahoo! Photos: High-quality 4x6 digital prints for 25¢ http://photos.yahoo.com/ph/print_splash