Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 01 Feb 2007 15:22:09 -0800
From:      Brian <bri@sonicboom.org>
To:        Ilya Vishnyakov <ilya@edpausa.com>
Cc:        freebsd-stable@freebsd.org
Subject:   Re: portupgrade -arR errors
Message-ID:  <45C27621.1050803@sonicboom.org>
In-Reply-To: <45C26DDC.1090305@edpausa.com>
References:  <45C26DDC.1090305@edpausa.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-stable
> To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org"
>   
I fixed a similar problem by running portsnap/cvsup, deinstalling 
portupgrade, reinstalling portupgrade (a newer version) then running 
portupgrade.

Brian



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?45C27621.1050803>