Re: Problem with portupgrade



Phillip Ledger wrote:
i have been trying to get portupgrade working, however everything i try
to run it im getting an error with the portsdb. now i have tryed to
rebuild it as requested initaly by portupgrade but im still getting an
error

portupgrade -aRr
[missing key: categories] [Updating the portsdb <format:bdb_btree> in
/var/tmp ... - 16413 port entries found
.........1000.........2000.........3000.........4000.........5000.........6000.........7000.........8000.........9000.........10000.........11000.........12000.........13000.........14000.........15000.........16000....
..... done]
missing key: categories: Cannot read the portsdb!
/usr/local/lib/ruby/site_ruby/1.8/portsdb.rb:548:in `open_db': database
file error (PortsDB::DBError)
from /usr/local/lib/ruby/site_ruby/1.8/portsdb.rb:702:in `port'
from /usr/local/lib/ruby/site_ruby/1.8/portsdb.rb:890:in
`all_depends_list'
from /usr/local/lib/ruby/site_ruby/1.8/pkgdb.rb:809:in `tsort_build'
from /usr/local/lib/ruby/site_ruby/1.8/pkgdb.rb:801:in `each'
from /usr/local/lib/ruby/site_ruby/1.8/pkgdb.rb:801:in `tsort_build'
from /usr/local/lib/ruby/site_ruby/1.8/pkgdb.rb:823:in `sort_build'
from /usr/local/lib/ruby/site_ruby/1.8/pkgdb.rb:827:in `sort_build!'
from /usr/local/sbin/portupgrade:721:in `main'
from /usr/local/lib/ruby/1.8/optparse.rb:755:in `initialize'
from /usr/local/sbin/portupgrade:220:in `new'
from /usr/local/sbin/portupgrade:220:in `main'
from /usr/local/sbin/portupgrade:2084


any idea whats causeing the issue or how to fix it?


Try removing /usr/ports/INDEX-6.db and running "portsdb -u", which
should rebuild it from your existing /usr/ports/INDEX-6 file.

(if you're using FreeBSD 5 it would be INDEX-5 above).


-Proto
_______________________________________________
freebsd-stable@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • Re: Problem with portupgrade
    ... to run it im getting an error with the portsdb. ... portupgrade -aRr ... and rebuild the database again. ... Even after a complete reinstall of the toll and rebuildig the database its still giving the same error. ...
    (freebsd-stable)
  • Re: Problem with portupgrade
    ... Michael Proto wrote: ... to run it im getting an error with the portsdb. ... portupgrade -aRr ... and rebuild the database again. ...
    (freebsd-stable)
  • Re: portsdb problem
    ... Out of the blue portsdb has become foobar'd. ... The only change I've made recently is installing portsearch and running ... I've tried the two recovery methods in the portupgrade ... currently 2.2.2,2 and as soon as the cvs mirrors are free I'll be giving it ...
    (comp.unix.bsd.freebsd.misc)
  • portupgrade error - `deorigin: cannot convert nil into String (PkgDB::DBError)
    ... Ever since a recent cvsup of ports and a portsdb -Uu, portupgrade ...
    (freebsd-stable)
  • Re: Portupgrade problem
    ... On Friday 09 April 2004 01:08 pm, Andreas Davour wrote: ... when I have succeeded in doing a portupgrade by hand I think ... portsdb now uses make index to build INDEX. ... Kent Stewart ...
    (freebsd-questions)