portupgrade -arR errors

Brian bri at sonicboom.org
Thu Feb 1 23:22:13 UTC 2007


Ilya Vishnyakov wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>  
> Please help me to find out why portupgrade -arR gives me errors such as:
>
> 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
> However, I run  portsdb -Uu and it didn't show any errors.
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.5 (MingW32)
>  
> iD8DBQFFwm3cGaMWa0kHPPoRArF9AJ9QZYfG8YxX9BI235KHohUqyO9VAACeKEhv
> oyE6wytzxeHn0Ah3iarCWkk=
> =C346
> -----END PGP SIGNATURE-----
>
> _______________________________________________
> freebsd-stable at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-stable
> To unsubscribe, send any mail to "freebsd-stable-unsubscribe at freebsd.org"
>   
I fixed a similar problem by running portsnap/cvsup, deinstalling 
portupgrade, reinstalling portupgrade (a newer version) then running 
portupgrade.

Brian


More information about the freebsd-stable mailing list