From owner-freebsd-ports Sat Oct 6 17:20:57 2001 Delivered-To: freebsd-ports@freebsd.org Received: from scaup.mail.pas.earthlink.net (scaup.mail.pas.earthlink.net [207.217.121.49]) by hub.freebsd.org (Postfix) with ESMTP id E83D837B403 for ; Sat, 6 Oct 2001 17:20:53 -0700 (PDT) Received: from moo.holy.cow (sdn-ar-004dcwashP286.dialsprint.net [206.133.15.216]) by scaup.mail.pas.earthlink.net (EL-8_9_3_3/8.9.3) with ESMTP id RAA16237 for ; Sat, 6 Oct 2001 17:20:52 -0700 (PDT) Received: by moo.holy.cow (Postfix, from userid 1001) id 7C29550BAA; Sat, 6 Oct 2001 20:21:46 -0400 (EDT) Date: Sat, 6 Oct 2001 20:21:46 -0400 From: parv To: f-ports Subject: portupgrade problem: 'update_db': instance of IO needed: Cannot update the packages database! Message-ID: <20011006202146.A17678@moo.holy.cow> Mail-Followup-To: f-ports Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org 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