Skip site navigation (1)Skip section navigation (2)
Date:      Tue,  9 Oct 2001 12:41:54 -0400 (EDT)
From:      parv_@yahoo.com
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/31168: portupgrade problem: 'update_db': instance of IO needed: Cannot update the packages database!
Message-ID:  <20011009164154.C49BE50BC5@moo.holy.cow>

next in thread | raw e-mail | index | archive | help

>Number:         31168
>Category:       ports
>Synopsis:       portupgrade problem: 'update_db': instance of IO needed: Cannot update the packages database!
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Oct 09 09:50:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     parv
>Release:        FreeBSD 4.4-STABLE i386
>Organization:
>Environment:
System: FreeBSD moo.holy.cow 4.4-STABLE FreeBSD 4.4-STABLE #0: Wed Oct 3 19:33:26 EDT 2001


>Description:

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/


>How-To-Repeat:

 may be start portupgrade like...

 # portupgrade '*'

 ...then interrupt it; afterwords try to upgrade one particular port
 to produce the error. 

 i cannot be sure if the above will work as i didn't have a chance
 to try it myself due to the reasons described above.

>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:

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?20011009164154.C49BE50BC5>