From owner-freebsd-ports@FreeBSD.ORG Tue Apr 2 18:53:15 2013 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id C779E892 for ; Tue, 2 Apr 2013 18:53:15 +0000 (UTC) (envelope-from jlaffaye.freebsd@gmail.com) Received: from mail-we0-x233.google.com (mail-we0-x233.google.com [IPv6:2a00:1450:400c:c03::233]) by mx1.freebsd.org (Postfix) with ESMTP id 61E8E95 for ; Tue, 2 Apr 2013 18:53:15 +0000 (UTC) Received: by mail-we0-f179.google.com with SMTP id p43so592742wea.10 for ; Tue, 02 Apr 2013 11:53:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:sender:message-id:date:from:user-agent:mime-version:to :subject:references:in-reply-to:content-type :content-transfer-encoding; bh=xN07xHWSqRBxD3y4BvEnM0s0AdP/wP3EVkG8mzaGGRw=; b=wH4aor7pWEhElrLZSDROseJrpLxqmzGKCIBYvwicAZ0diPDvHDek8gXyTIvw5gkQ53 aWuC6gW3XPM+oqp9Q9Hj7vM9nuX6nyJMlB1I7LMYNuvpd+/2Gyh+6gb9LEFGxeCU/ubB rxkdaiQpgFUfrLgzXQa8zlPMwMtweg4RbmSm13wgduKi73A9Gn7cNWvIeFdHcf7bIgiA 5h/+51OgHwdf+t/sn3JIaBmnvA5LCLE8YduoosR6O3Xfmt9icC8AVKmdghfP2klDrn3l F6rZHmIy5AtB2oLe/ugCUWPxvMkyqgnAR7B0plTvihwnZkkreifj2Bl3g1FlYDsbKMss 1lUw== X-Received: by 10.180.84.162 with SMTP id a2mr17964710wiz.14.1364928794470; Tue, 02 Apr 2013 11:53:14 -0700 (PDT) Received: from [192.168.1.66] (lantea.jlaffaye.net. [109.190.125.169]) by mx.google.com with ESMTPS id er1sm20623824wib.5.2013.04.02.11.53.10 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 02 Apr 2013 11:53:13 -0700 (PDT) Sender: Julien Laffaye Message-ID: <515B2915.9000602@freebsd.org> Date: Tue, 02 Apr 2013 20:53:09 +0200 From: Julien Laffaye User-Agent: Thunderbird/7.0.1 MIME-Version: 1.0 To: freebsd-ports@freebsd.org Subject: Re: pkg_version: the package info for package '...' is corrupt References: <10955.1364893724@server1.tristatelogic.com> <515AA7E6.5020606@eskk.nu> In-Reply-To: <515AA7E6.5020606@eskk.nu> 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 18:53:15 -0000 On 4/2/2013 11:41 AM, Leslie Jensen wrote: > > > 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. > No, this is the old pkg_version which produces this output. With pkgng, the database is atomic thanks to sqlite, thus this problem would not have occured. > /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