Date: Sat, 6 Oct 2001 20:21:46 -0400 From: parv <parv_@yahoo.com> To: f-ports <freebsd-ports@freebsd.org> Subject: portupgrade problem: 'update_db': instance of IO needed: Cannot update the packages database! Message-ID: <20011006202146.A17678@moo.holy.cow>
next in thread | raw e-mail | index | archive | help
hi, in /source/ports/distfiles, when i issued following command... # portupgrade bladeenc-0.92 ...portupgrade started upgrading everything in /var/db/pkg (247 of them), so i interrupted it via Ctrl-C. after that, when i tried the following command, got error... # portupgrade bladee* [Updating the packages database in /var/db/pkg ... /usr/local/lib/ruby/site_ruby/1.6/pkgdb.rb:343:in `update_db': instance of IO needed: Cannot update the packages database!] (PkgDB::DBError) from /usr/local/lib/ruby/site_ruby/1.6/pkgdb.rb:349:in `open_db' from /usr/local/lib/ruby/site_ruby/1.6/pkgdb.rb:481:in `installed_pkgs_' from /usr/local/lib/ruby/site_ruby/1.6/pkgdb.rb:409:in `installed_pkg?' from /usr/local/lib/ruby/site_ruby/1.6/pkgdb.rb:115:in `pkg' from /usr/local/lib/ruby/site_ruby/1.6/pkgdb.rb:520:in `glob' from /usr/local/sbin/portupgrade:416:in `main' from /usr/local/sbin/portupgrade:415:in `catch' from /usr/local/sbin/portupgrade:415:in `main' ... 6 levels... from /usr/local/sbin/portupgrade:175:in `initialize' from /usr/local/sbin/portupgrade:175:in `new' from /usr/local/sbin/portupgrade:175:in `main' from /usr/local/sbin/portupgrade:1408 ...seems like package db was messed up or something is wrong w/ the newest version of portupgrade. when i tried fixing db, it produced the following message... # pkgdb -F [Updating the packages database in /var/db/pkg ... instance of IO needed: Cannot update the packages database!] portupgrade version is 20011006.1, and am using 4.4-stable. i had cvsup'd ports a few minutes ago and deleted everything ruby before installing it again... # pkg_delete -d -f ruby* ...after all that, portupgrade still gives the above message. what am i missing? i had already looked at pr 29956 w/ similar problem where above (deinstall & reinstall again) worked, but not for me. http://www.FreeBSD.org/cgi/query-pr.cgi?pr=29956 here is the listing of /var/db/pkg... drwxr-xr-x 2 root wheel 512 Oct 6 20:13 /var/db/pkg/portupgrade-20011006.1/ drwxr-xr-x 2 root wheel 512 Oct 6 20:12 /var/db/pkg/ruby-1.6.5/ drwxr-xr-x 2 root wheel 512 Oct 6 20:13 /var/db/pkg/ruby-fnmatch-1.1b_1/ drwxr-xr-x 2 root wheel 512 Oct 6 20:13 /var/db/pkg/ruby-optparse-0.8.4/ drwxr-xr-x 2 root wheel 512 Oct 6 20:13 /var/db/pkg/ruby-uri-0.9,1/ any help is appreciated. - parv -- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20011006202146.A17678>