How to fix corrupt package info?
Lowell Gilbert
freebsd-ports-local at be-well.ilk.org
Thu Oct 26 13:39:44 UTC 2006
Don't top-post please.
"Indigo 23" <indigo23 at gmail.com> writes:
> On 10/26/06, Doug Barton <dougb at 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.
More information about the freebsd-ports
mailing list