Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 05 Jul 2006 09:21:15 +0200
From:      Psadi <freebsd@psam.se>
To:        jan gestre <freebsd.ph@gmail.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Portupgrade
Message-ID:  <44AB686B.7040003@psam.se>
In-Reply-To: <a25afc300607031008j190df67dhea23838ef7e3ff81@mail.gmail.com>
References:  <20060702205752.89100.qmail@web61016.mail.yahoo.com>	<20060702185111.96cc0e0a.wmoran@collaborativefusion.com> <a25afc300607031008j190df67dhea23838ef7e3ff81@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
HI

This problem is that the /var/db/pkg/pkgdb.db has been damaged. What you 
need to do is to build a new pkgdb.db file
First cd /var/db/pkg save the old pkgdb by
mv pkgdb.db -> pkgdb.old
then you run pkgdb -u

after that you should be up and running again.

Psadi

jan gestre skrev:
> On 7/3/06, Bill Moran <wmoran@collaborativefusion.com> wrote:
>>
>> "E. J. Cerejo" <edu07643@yahoo.com.br> wrote:
>>
>> > I'm running FreeBSD 6.1 release and after upgrading portupgrade using
>> portupgrade itself I'm getting this message (message bellow) or 
>> similar one
>> everytime I run one of the portupgrade commands like pkgdb -u or -F,
>> portversion -L = or portupgrade itself.  Tells me that the database 
>> needs to
>> be rebuild, I run portsdb -uU and I get this same error message (message
>> bellow) it rebuilds with portsdb -fuU but still get this same message.
>> >
>> > Error Message:
>> >
>> > [Updating the pkgdb <format:bdb_btree> in /var/db/pkg ...
>> /var/db/pkg/pkgdb.db: unexpected file type or format -- Invalid 
>> argument;
>> rebuild needed] [Rebuilding the pkgdb <format:bdb_btree> in 
>> /var/db/pkg ...
>> [Updating the pkgdb <format:bdb_btree> in /var/db/pkg ...
>> /var/db/pkg/pkgdb.db: unexpected file type or format -- Invalid 
>> argument;
>> rebuild needed] [Rebuilding the pkgdb <format:bdb_btree> in 
>> /var/db/pkg ...
>> /var/db/pkg/pkgdb.db: unexpected file type or format -- Invalid 
>> argument:
>> Cannot update the pkgdb!]: Cannot update the pkgdb!]
>> > Command failed [exit code 1]: /usr/local/sbin/pkgdb -aFQ
>> >
>> > any clues on how to solve this?
>>
>> When was the last time you did a cvsup?
>>
>> Portupgrade was hosed for a few days there, if your ports tree 
>> previously
>> installed the hosted version, portupgrade won't work.
>>
>> If this is the case, the solution is:
>> 1) cvsup ports
>> 2) pkg_delete portupgrade
>> 3) cd /usr/ports/sysutils/portupgrade && make install clean
>>
>> Portupgrade will then start working again.
>>
>> i always do a cvsup before upgrading the ports but i got the same 
>> problem,
> pkg_delete did not work coz it can't see the portupgrade version that is
> installed so i did a make deinstall and make reinstall instead but 
> with the
> same result, any idea how will i solve this?
>
> TIA
> _______________________________________________
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to 
> "freebsd-questions-unsubscribe@freebsd.org"
>
>




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?44AB686B.7040003>