From owner-freebsd-ports@FreeBSD.ORG Tue Apr 2 09:42:06 2013 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id B5324B00 for ; Tue, 2 Apr 2013 09:42:06 +0000 (UTC) (envelope-from leslie@eskk.nu) Received: from mx1.bjare.net (mx1.bjare.net [212.31.160.3]) by mx1.freebsd.org (Postfix) with ESMTP id 40E4B605 for ; Tue, 2 Apr 2013 09:42:05 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mx1.bjare.net (Postfix) with ESMTP id 5A8165E46B for ; Tue, 2 Apr 2013 11:42:04 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at mx1.bjare.net X-Spam-Flag: NO X-Spam-Score: -1.34 X-Spam-Level: X-Spam-Status: No, score=-1.34 tagged_above=-999 required=5 tests=[AWL=-0.729, BAYES_00=-2.599, MISSING_HEADERS=1.292, RDNS_NONE=0.1, SPF_SOFTFAIL=0.596] Received: from mx1.bjare.net ([127.0.0.1]) by localhost (mx1.bjare.net [127.0.0.1]) (amavisd-new, port 10024) with LMTP id gZSP+AN+THr6 for ; Tue, 2 Apr 2013 11:42:01 +0200 (CEST) X-BN-MX1: ja X-BN-MailInfo: BjareNet Received: from bljbsd01.no-ip.org (unknown [195.216.53.111]) by mx1.bjare.net (Postfix) with ESMTP id 4CA3E5E452 for ; Tue, 2 Apr 2013 11:41:58 +0200 (CEST) Message-ID: <515AA7E6.5020606@eskk.nu> Date: Tue, 02 Apr 2013 11:41:58 +0200 From: Leslie Jensen User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:17.0) Gecko/20130309 Thunderbird/17.0.4 MIME-Version: 1.0 CC: freebsd-ports@freebsd.org Subject: Re: pkg_version: the package info for package '...' is corrupt References: <10955.1364893724@server1.tristatelogic.com> In-Reply-To: <10955.1364893724@server1.tristatelogic.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 02 Apr 2013 09:42:06 -0000 2013-04-02 11:08, Ronald F. Guilmette skrev: > > > [[ I asked about this problem on the -questions list a couple of days > ago, but didn't get any relevant replies, so I'm trying again here > on the -ports list. Apologies if you see this twice. ]] > > A couple of days ago my system just simply decided to power itself off > (twice) whilst I was in the middle of doing "portupgrade -a". > > I have since learned that the unscheduled and unexpected power offs > were due to a CPU cooling problem. I believe that I have that problem > in hand now. > > Separately however, and probably as result of the sudden power offs, > when I run pkg_version now I am getting many messages relating to > various of my installed packages, all having the following general > form: > > pkg_version: the package info for package 'PKG' is corrupt > > where `PKG' is the name of some package or another that I have installed. > > I have at least 6 such messages for different packages I have installed... > and probably more. > > I googled around a bit and did not find any good explanation for the > above error or, more importantly, what to do about it. > > I gather however that my package data base has become corrupted. > > OK, so how does one rebuild that from scratch? > > Please don't tell me that I have to reinstall every bleedin' port from > scratch! > > > Regards, > rfg > > > P.S. Oh! And by the way, I just happen to have made a full system backup > quite recently. Do I just simply need to get the entire contents of > /var/db/pkg/ from that backup, and then do "rm -fr /var/db/pkg" and then > copy my backup copy of /var/db/pkg to the real /var/db/pkg ? > > Will that fix the problem? > _______________________________________________ > freebsd-ports@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-ports > To unsubscribe, send any mail to "freebsd-ports-unsubscribe@freebsd.org" > Are you using pkg? If so the command should be pkg version without the underscore. /Leslie PS: Your private mail address bounces. I've tried two different SMTP Servers! : host server1.tristatelogic.com[69.62.255.118] said: 550 5.7.1 : Client host rejected: bjare.net is BLACKLISTED - Use http://www.tristatelogic.com/contact.html (in reply to RCPT TO command) <<< 550 5.7.1 : Client host rejected: cust.bredband2.com is BLACKLISTED - Use http://www.tristatelogic.com/contact.html 550 5.1.1 ... User unknown <<< 554 5.5.1 Error: no valid recipients