From owner-freebsd-questions@FreeBSD.ORG Mon Aug 20 20:39:26 2007 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4D4B916A41A for ; Mon, 20 Aug 2007 20:39:26 +0000 (UTC) (envelope-from freebsd-questions-local@be-well.ilk.org) Received: from mail7.sea5.speakeasy.net (mail7.sea5.speakeasy.net [69.17.117.9]) by mx1.freebsd.org (Postfix) with ESMTP id 285B613C46E for ; Mon, 20 Aug 2007 20:39:26 +0000 (UTC) (envelope-from freebsd-questions-local@be-well.ilk.org) Received: (qmail 1028 invoked from network); 20 Aug 2007 20:39:25 -0000 Received: from dsl092-078-145.bos1.dsl.speakeasy.net (HELO be-well.ilk.org) ([66.92.78.145]) (envelope-sender ) by mail7.sea5.speakeasy.net (qmail-ldap-1.03) with SMTP for ; 20 Aug 2007 20:39:25 -0000 Received: by be-well.ilk.org (Postfix, from userid 1147) id 8967D2843A; Mon, 20 Aug 2007 16:39:24 -0400 (EDT) To: Johan Andersson References: <46C8E26A.4060305@i19.se> From: Lowell Gilbert Date: Mon, 20 Aug 2007 16:39:24 -0400 In-Reply-To: <46C8E26A.4060305@i19.se> (Johan Andersson's message of "Mon\, 20 Aug 2007 02\:38\:02 +0200") Message-ID: <44odh2c54z.fsf@be-well.ilk.org> User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.99 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Freebsd questions Subject: Re: Error in pkg_version.. "package is corrupt" 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: Mon, 20 Aug 2007 20:39:26 -0000 Johan Andersson writes: > Hello.. > I was running portupgrade -a . in the middle of compile i did lose power.. > now when im running pkg_version -vL= i got this: > > pkg_version: the package info for package 'GeoIP-1.4.2' is corrupt > pkg_version: the package info for package 'aide-0.11' is corrupt > pkg_version: the package info for package 'arc-5.21o_1' is corrupt > pkg_version: the package info for package 'arj-3.10.22' is corrupt > pkg_version: the package info for package 'autoconf-2.13.000227_6' is > corrupt > pkg_version: the package info for package 'autoconf-2.59_3' is corrupt > pkg_version: the package info for package 'autoconf-2.61_2' is corrupt > pkg_version: the package info for package 'autoconf-wrapper-20070404' is > corrupt > pkg_version: the package info for package 'automake-1.4.6_4' is corrupt > pkg_version: the package info for package 'automake-1.9.6_2' is corrupt > pkg_version: the package info for package 'automake-wrapper-20070404' is > corrupt > and more... > > How do i fix this without reinstall the system? You can restore the package descriptions (/var/db/pkg/*, unless you put them somewhere else) from backups. Alternatively, you could forcibly reinstall the ports. -- Lowell Gilbert, embedded/networking software engineer, Boston area http://be-well.ilk.org/~lowell/