Date: Tue, 4 Jul 2006 01:03:00 +0800 From: "jan gestre" <freebsd.ph@gmail.com> To: "Kent Stewart" <kstewart@owt.com> Cc: Jim Stapleton <stapleton.41@gmail.com>, freebsd-questions@freebsd.org Subject: Re: cannot upgrade Message-ID: <a25afc300607031003q32cb24f1ge09888b71ec17319@mail.gmail.com> In-Reply-To: <200607021450.10112.kstewart@owt.com> References: <20060702183123.GC12262@tigger.digitaltorque.ca> <20060702183358.GD12262@tigger.digitaltorque.ca> <80f4f2b20607021423h3de5f063raf7ea0f2843c3399@mail.gmail.com> <200607021450.10112.kstewart@owt.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On 7/3/06, Kent Stewart <kstewart@owt.com> wrote: > > On Sunday 02 July 2006 14:23, Jim Stapleton wrote: > > I would guess that means the file was corrupted somehow, though I > > don't know how. > > > > At any rate, I don't know how to fix that, and not loose the stored > > information. > > You "pkgdb -fu" and it recreates the database. You will also probably > find that you need to recreate your INDEX[-*].db. After that, > everything works just fine. All I did is run pkg-version and it rebuilt > the INDEX.db. i 'm having this same problem :( tried everything that is mentioned in here but to no avail. i even tried make deinstall and make reinstall and it didnt work, pkg_delete wont work coz it cant find portupgrade. pls help Kent > > > > > On 7/2/06, Michael P. Soulier <msoulier@digitaltorque.ca> wrote: > > > On 02/07/06 Michael P. Soulier said: > > > > Cannot update the pkgdb!]: Cannot update the pkgdb!] > > > > /usr/local/lib/ruby/site_ruby/1.8/pkgtools.rb:444:in `__system': > > > > Command failed [exit code 1]: /usr/local/sbin/pkgdb -aFQ > > > > (CommandFailedError) from > > > > /usr/local/lib/ruby/site_ruby/1.8/pkgtools.rb:467:in `__sudo' > > > > from /usr/local/lib/ruby/site_ruby/1.8/pkgtools.rb:473:in > > > > `xsystem!' from /usr/local/lib/ruby/site_ruby/1.8/pkgdb.rb:960:in > > > > `autofix!' from /usr/local/lib/ruby/site_ruby/1.8/pkgdb.rb:956:in > > > > `autofix' from /usr/local/sbin/portupgrade:475:in `main' > > > > from /usr/local/sbin/portupgrade:714:in `main' > > > > from /usr/local/lib/ruby/1.8/optparse.rb:815:in > > > > `initialize' from /usr/local/sbin/portupgrade:209:in `main' > > > > from /usr/local/sbin/portupgrade:1951 > > > > > > [root@espresso ~]# pkgdb -F > > > ---> Checking the package registry database > > > [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!] > > > > > > This doesn't look good. > > > > > > Mike > > > > > > -- > > > Michael P. Soulier <msoulier@digitaltorque.ca> > > > "Any intelligent fool can make things bigger and more complex... It > > > takes a touch of genius - and a lot of courage to move in the > > > opposite direction." --Albert Einstein > > > > _______________________________________________ > > 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" > > -- > Kent Stewart > Richland, WA > > http://www.soyandina.com/ "I am Andean project". > http://users.owt.com/kstewart/index.html > _______________________________________________ > 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?a25afc300607031003q32cb24f1ge09888b71ec17319>