Corrupt pkgdb

Beech Rintoul beech at alaskaparadise.com
Thu Jul 27 15:32:08 UTC 2006


On Thursday 27 July 2006 07:05, Joshua Lewis wrote:
>    I am setting up a new system and ran a portupgrade -a. Unfortunately I
>    also in my arrogance tried to run XDM while the portupgrade was
>    running. Well to make a long story short I could not exit out of XDM
>    and get back to my console and had to reboot the system. Now I get an
>    error that my pkgdb is corrupt when I try to rerun the portupgrade.
>
>
>
>    Is there a way to rebuild that DB or do I have to reinstall the whole
>    OS? I don't know how that pkgdb gets created so I don't know if it is
>    created during the install or when I installed portupgrade.
>
>
>
>    Any advice is welcome. Thanks.
>    Sincerely,
>    Joshua Lewis

Just rm or mv /var/db/pkg/pkgdb.db and it will be rebuilt the next time you 
run portupgrade.

Beech

-- 

---------------------------------------------------------------------------------------
Beech Rintoul - Sys. Administrator - beech at alaskaparadise.com
/"\   ASCII Ribbon Campaign  | Alaska Paradise
\ / - NO HTML/RTF in e-mail  | 201 East 9Th Avenue Ste.310
 X  - NO Word docs in e-mail | Anchorage, AK 99501
/ \  - Please visit Alaska Paradise - http://www.alaskaparadise.com
---------------------------------------------------------------------------------------











-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20060727/d64cd3cc/attachment.pgp


More information about the freebsd-questions mailing list