Bug 426246

Summary: Add/Remove Software failed
Product: [Fedora] Fedora Reporter: John Brown <jbrown>
Component: pirutAssignee: Jeremy Katz <katzj>
Status: CLOSED NEXTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: low    
Version: 8CC: james.antill, richardh9935, sbornava
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-05-28 19:25:28 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Add/Remove Software failed none

Description John Brown 2007-12-19 15:48:19 UTC
Following error message generated

Component: pirut
Summary: TB7bcc1c48 config.py:707:_getsysver:TypeError: rpmdb open failed

Traceback (most recent call last):
  File "/usr/sbin/pirut", line 483, in <module>
    main()
  File "/usr/sbin/pirut", line 476, in main
    pm = PackageManager(options.config, options.onlyrepo)
  File "/usr/sbin/pirut", line 63, in __init__
    GraphicalYumBase.__init__(self, False, config)
  File "/usr/lib/python2.5/site-packages/pirut/__init__.py", line 132, in __init__
    plugin_types=(yum.plugins.TYPE_CORE,))
  File "/usr/lib/python2.5/site-packages/yum/__init__.py", line 116, in
doConfigSetup
    errorlevel=errorlevel)
  File "/usr/lib/python2.5/site-packages/yum/__init__.py", line 162, in _getConfig
    self._conf = config.readMainConfig(startupconf)
  File "/usr/lib/python2.5/site-packages/yum/config.py", line 640, in readMainConfig
    yumvars['releasever'] = _getsysver(startupconf.installroot,
startupconf.distroverpkg)
  File "/usr/lib/python2.5/site-packages/yum/config.py", line 707, in _getsysver
    idx = ts.dbMatch('provides', distroverpkg)
TypeError: rpmdb open failed

Local variables in innermost frame:
installroot: /
ts: <rpmUtils.transaction.TransactionWrapper instance at 0x945d94c>
distroverpkg: redhat-release

Comment 1 Jeremy Katz 2007-12-19 16:48:12 UTC
What is the output of 'rpm -q --whatprovides redhat-release'?

Comment 2 John Brown 2007-12-24 14:16:23 UTC
[john@localhost ~]$ rpm -q --whatprovides redhat-release
fedora-release-8-5
[john@localhost ~]$ 


Comment 3 Jeremy Katz 2007-12-26 18:57:51 UTC
And does this happen reliably?

Comment 4 Gudino Zahir 2007-12-26 22:50:03 UTC
Created attachment 290429 [details]
Add/Remove Software failed

Comment 5 Gudino Zahir 2007-12-26 22:55:52 UTC
Comment on attachment 290429 [details]
Add/Remove Software failed

I've read some info about the issue and for a sec  i thought i was done because
of Yum, not sure sine i am not a linux pro, but that was my guess. now i have
to tell something and probably this can be the root of the issue. i had enable
YUM as the nornal method. now i do add some entry to the
/etc/yum/pluginconf.d/priorities.conf
i nano edit that and added 'check_obsoletes = 1'

so well i will wait for any fix for this since i am a really noob yet in linux,
but i do really want to learn more..
thanks for any reply, i sure appriciate those with all my heart

Comment 6 Jeremy Katz 2007-12-27 01:06:54 UTC
Gudino -- you are seeing a separate issue (bug 421961)

Comment 7 John Brown 2007-12-27 15:40:33 UTC
(In reply to comment #2)
> [john@localhost ~]$ rpm -q --whatprovides redhat-release
> fedora-release-8-5
> [john@localhost ~]$ 
> 

[john@localhost ~]$ rpm -q --whatprovides redhat-release
fedora-release-8-5
[john@localhost ~]$ rpm -q --whatprovides redhat-release
fedora-release-8-5
[john@localhost ~]$ rpm -q --whatprovides redhat-release
fedora-release-8-5
[john@localhost ~]$ 

 it would appear to be a reliable response

Comment 8 John Brown 2007-12-27 15:51:14 UTC
Just retryed and received following error message:

Component: pirut
Summary: TBe0876e9f __init__.py:421:simpleDBInstalled:TypeError: rpmdb open failed

Traceback (most recent call last):
  File "/usr/lib/python2.5/site-packages/pirut/GroupSelector.py", line 410, in
_groupSelected
    self.__setGroupDescription(grp)
  File "/usr/lib/python2.5/site-packages/pirut/GroupSelector.py", line 427, in
__setGroupDescription
    if self.ayum.isPackageInstalled(p):
  File "/usr/lib/python2.5/site-packages/pirut/__init__.py", line 439, in
isPackageInstalled
    installed = self.simpleDBInstalled(name)
  File "/usr/lib/python2.5/site-packages/pirut/__init__.py", line 421, in
simpleDBInstalled
    mi = self.ts.ts.dbMatch('name', name)
TypeError: rpmdb open failed

Local variables in innermost frame:
self: <__main__.PackageManager object at 0xa5b068c>
arch: None
name: tomboy

Comment 9 John Brown 2007-12-27 17:19:46 UTC
Following a reboot, retrieving update information icon appeared. On selecting
Apply updates, following unhandled exception error message appeared. Could this
be part of the same problem? 
Component: pirut
Summary: TB7bcc1c48 config.py:707:_getsysver:TypeError: rpmdb open failed

Traceback (most recent call last):
  File "/usr/sbin/pup", line 611, in <module>
    main()
  File "/usr/sbin/pup", line 603, in main
    pup = PackageUpdater(not options.autoapply, options.config)
  File "/usr/sbin/pup", line 80, in __init__
    GraphicalYumBase.__init__(self, False, config)
  File "/usr/lib/python2.5/site-packages/pirut/__init__.py", line 132, in __init__
    plugin_types=(yum.plugins.TYPE_CORE,))
  File "/usr/lib/python2.5/site-packages/yum/__init__.py", line 116, in
doConfigSetup
    errorlevel=errorlevel)
  File "/usr/lib/python2.5/site-packages/yum/__init__.py", line 162, in _getConfig
    self._conf = config.readMainConfig(startupconf)
  File "/usr/lib/python2.5/site-packages/yum/config.py", line 640, in readMainConfig
    yumvars['releasever'] = _getsysver(startupconf.installroot,
startupconf.distroverpkg)
  File "/usr/lib/python2.5/site-packages/yum/config.py", line 707, in _getsysver
    idx = ts.dbMatch('provides', distroverpkg)
TypeError: rpmdb open failed

Local variables in innermost frame:
installroot: /
ts: <rpmUtils.transaction.TransactionWrapper instance at 0xa60b48c>
distroverpkg: redhat-release

Comment 10 richard horobin 2008-01-01 01:29:08 UTC
I've had this error for over a week, and I have tried several of the suggested
solutions, with no success.

Since pirut fails, what is the "manual" work-around?  Can I use some sort of
apt-get or rpm command to bypass pirut?

Comment 11 richard horobin 2008-01-01 01:32:19 UTC
Surely this group (255341, 426246, 426894) are all from the same root cause?

Comment 12 John Brown 2008-02-12 14:33:19 UTC
Any movement on resolving this issue?

Comment 13 Jeremy Katz 2008-05-28 19:25:28 UTC
This should be fixed with the update which will be going out in the next week or so.

Comment 14 Jeremy Katz 2008-05-28 19:25:51 UTC
*** Bug 426845 has been marked as a duplicate of this bug. ***