Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 05 Jun 2006 10:44:55 -0700
From:      Doug Barton <dougb@FreeBSD.org>
To:        Achilleus Mantzios <achill@matrix.gatewaynet.com>
Cc:        freebsd-ports@freebsd.org
Subject:   Re: package corrupt/whats the "official" way of dealing with?
Message-ID:  <44846D97.5060707@FreeBSD.org>
In-Reply-To: <Pine.LNX.4.44.0606051101250.31758-100000@matrix.gatewaynet.com>
References:  <Pine.LNX.4.44.0606051101250.31758-100000@matrix.gatewaynet.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?44846D97.5060707>