Date: Mon, 03 Jul 2006 12:00:09 +0400 From: Sergey Matveychuk <sem@FreeBSD.org> To: Sergey Matveychuk <sem@freebsd.org>, dandee@volny.cz, ports@freebsd.org Subject: Re: FreeBSD Port: portupgrade-2.1.3.2, 2 - help me please, the port in short time is broken again, what does it all mean ? Message-ID: <44A8CE89.1020103@FreeBSD.org> In-Reply-To: <20060703065404.GC51623@snoozy.vdgrift.org> References: <003201c69e25$43b56de0$6508280a@tocnet28.jspoj.czf> <44A8AFB7.5030304@FreeBSD.org> <20060703060759.GB51623@snoozy.vdgrift.org> <44A8B61C.6010003@FreeBSD.org> <20060703065404.GC51623@snoozy.vdgrift.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?44A8CE89.1020103>