Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 26 Oct 2006 09:38:38 -0400
From:      Lowell Gilbert <freebsd-ports-local@be-well.ilk.org>
To:        "Indigo 23" <indigo23@gmail.com>
Cc:        freebsd-ports@freebsd.org
Subject:   Re: How to fix corrupt package info?
Message-ID:  <444ptrkxi9.fsf@be-well.ilk.org>
In-Reply-To: <6f50eac40610260122s3c47c0a1rf0b4fe6f71c6df1b@mail.gmail.com> (Indigo's message of "Thu, 26 Oct 2006 04:22:09 -0400")
References:  <6f50eac40610252351y341d61e5hc3f4518311366fd8@mail.gmail.com> <4540662B.2030404@FreeBSD.org> <6f50eac40610260122s3c47c0a1rf0b4fe6f71c6df1b@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Don't top-post please.

"Indigo 23" <indigo23@gmail.com> writes:

> On 10/26/06, Doug Barton <dougb@freebsd.org> wrote:
>> Indigo 23 wrote:
>> > I was recently running portupgrade after my computer locked up twice
>> > (and both times I did fsck), and I noticed some errors about package
>> > info being corrupt.
>>
>> find /var/db/pkg -type d -exec chmod 755 {} \;
>> find /var/db/pkg -type f -exec chmod 644 {} \;
>>
>> That should fix it up for you. If it doesn't, you have much bigger
>> problems.

> Unfortunately, it looks like I have much bigger problems :(  I tried
> what you suggested and it did not work.  I am hoping there is a plan
> B.  If there is, please let me know what it is.

Well, you can always try restoring the corrupt package database
directories from backups.  fsck(8) the filesystem first, just to be
safe.   

If that doesn't help, you may need to reinstall all of the packages.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?444ptrkxi9.fsf>