From owner-freebsd-ports@FreeBSD.ORG Mon Jun 5 17:45:01 2006 Return-Path: X-Original-To: freebsd-ports@freebsd.org Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 66C6316BD8C for ; Mon, 5 Jun 2006 17:45:01 +0000 (UTC) (envelope-from dougb@FreeBSD.org) Received: from mail2.fluidhosting.com (mx21.fluidhosting.com [204.14.89.4]) by mx1.FreeBSD.org (Postfix) with SMTP id C37BD43D46 for ; Mon, 5 Jun 2006 17:45:00 +0000 (GMT) (envelope-from dougb@FreeBSD.org) Received: (qmail 12430 invoked by uid 399); 5 Jun 2006 17:44:59 -0000 Received: from localhost (HELO ?192.168.0.3?) (dougb@dougbarton.us@127.0.0.1) by localhost with SMTP; 5 Jun 2006 17:44:59 -0000 Message-ID: <44846D97.5060707@FreeBSD.org> Date: Mon, 05 Jun 2006 10:44:55 -0700 From: Doug Barton Organization: http://www.FreeBSD.org/ User-Agent: Thunderbird 1.5.0.4 (X11/20060604) MIME-Version: 1.0 To: Achilleus Mantzios References: In-Reply-To: X-Enigmail-Version: 0.94.0.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-ports@freebsd.org Subject: Re: package corrupt/whats the "official" way of dealing with? X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Jun 2006 17:45:06 -0000 Achilleus Mantzios wrote: > Hi, > > during a 6.0-BETA1 to 6.1-RELEASE-p1 upgrade cycle > and a subsequent > portupgrade -PRr '*', > (and most probably while doing the nvidia port), > my system crashed and it left the /var/db/pkg system > in a corrupted condition: > > pkg_info: the package info for package 'apache-ant-1.6.5' is corrupt ... > None of the popular -f -u etc... pkgdb switches seem to remedy the > problem. > > What should i do? > > I am thinking of deleting the above dirs and installing those packages > again. Well, for cvsup you can just pkg_delete it and then do pkg_add -r cvsup. For the rest, I saw this problem when I was developing portmaster when the files in the /var/db/pkg/ directories did not have the right permissions. You can try doing: find /var/db/pkg/ -type f -exec chmod 644 {} \; and see if that fixes it for you. If not, you are probably correct that you will have to reinstall the ports/packages to fix it. If you're using ports, and want to give portmaster a try, it will rebuild your dependency information for you, assuming that there is any valid data in the pkg directories to start with. Hope that helps, Doug -- This .signature sanitized for your protection