FreeBSD Port: portupgrade-2.1.3.2, 2 - help me please, the port in short time is broken again, what does it all mean ?

Sergey Matveychuk sem at FreeBSD.org
Mon Jul 3 08:00:43 UTC 2006


Bert van de Grift wrote:
> On Mon, Jul 03, 2006 at 10:15:56AM +0400, Sergey Matveychuk wrote:
>> Bert van de Grift wrote:
>>> On Mon, Jul 03, 2006 at 09:48:39AM +0400, Sergey Matveychuk wrote:
>>>> Daniel Dvor(a'k wrote:
> 
>>>>> Fixing the pkgdb.db does not help me at all.
> 
>>>> It's a known issue.
> 
>>>> Just remove the file and /usr/ports/INDEX*.db and run portupgrade
>>>> again.  Note, it's described on man page - if you found pkgdb.db
>>>> seriously broken, just remove it.
> 
>>> I have the same problem after upgrading portupgrade but when I go back
>>> to the previous version (2.1.1,2) everything is ok...
> 
>> See my HANDS-UP message a couples days ago at the list.
>> Old (<=2.1.1,2) portupgrade use wrong (may be a right word will -
>> "unexpected") database format.
> 
> OK - But when I remove /usr/ports/INDEX*.db and rebuild the database I
> get this:
> 
> [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 portsdb <format:bdb_btree> in /usr/ports
> ... - 15088 port entries found
> .........1000.........2000.........3000.........4000.........5000.........6000.........7000.........8000.........9000.........10000.........11000.........12000.........13000.........14000.........15000
> ..... done]
> [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 ... /usr/local/lib/ruby/site_ruby/1.8/pkgdb.rb:352:in
> `deorigin_glob': /var/db/pkg/pkgdb.db: unexpected file type or format --
> Invalid argument: Cannot update the pkgdb!]: Cannot update the pkgdb!]
> (PkgDB::DBError)
>         from /usr/local/lib/ruby/site_ruby/1.8/pkgtools.rb:182:in
> `config_include?'
>         from /usr/local/lib/ruby/site_ruby/1.8/pkgtools.rb:177:in
> `config_include?'
>         from /usr/local/lib/ruby/site_ruby/1.8/pkgtools.rb:167:in
> `config_ignore_moved?'
>         from /usr/local/sbin/portversion:308:in `check_pkgs'
>         from /usr/local/sbin/portversion:306:in `check_pkgs'
>         from /usr/local/sbin/portversion:266:in `main'
>         from /usr/local/lib/ruby/1.8/optparse.rb:815:in `initialize'
>         from /usr/local/sbin/portversion:78:in `main'
>         from /usr/local/sbin/portversion:361
> 
> Any clues?
> 

I've written you should remove "the file and INDEX*.db". The file was
pkgdb.db in your context. So you should remove *both* files.

-- 
Dixi.
Sem.


More information about the freebsd-ports mailing list