Re: Corrupt pkgdb

2006-07-27 Thread Bryan Bonifacio
>From "man portupgrade"... 

1) Try a "pkgdb -fu"
2) If it doesn't work, remove the database file at
(/var/db/pkg/pkgdb.db) and
3)  Rerun "pkgdb -fu" 

Hope this helps...

--
Bryan


Joshua Lewis <[EMAIL PROTECTED]> 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
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Corrupt pkgdb

2006-07-27 Thread Beech Rintoul
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 - [EMAIL PROTECTED]
/"\   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
---













pgpJjrPfMjEIB.pgp
Description: PGP signature


Corrupt pkgdb

2006-07-27 Thread Joshua Lewis

   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
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"