Bug 577069
Summary: | Loss of capability to add, remove or update packages | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 5 | Reporter: | Fernando Mansito <fernando.mansito> |
Component: | pirut | Assignee: | James Antill <james.antill> |
Status: | CLOSED WONTFIX | QA Contact: | Red Hat Satellite QA List <satqe-list> |
Severity: | urgent | Docs Contact: | |
Priority: | low | ||
Version: | 5.6 | CC: | bkearney, matteoefrem |
Target Milestone: | rc | ||
Target Release: | --- | ||
Hardware: | i386 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2013-03-14 19:18:29 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: |
Description
Fernando Mansito
2010-03-26 00:51:32 UTC
idx = ts.dbMatch('provides', distroverpkg) TypeError: rpmdb open failed ...this usually means something is holding some kind of lock on the rpmdb, often it's a stale lock. I'd reboot and run: 1. rm -f /var/lib/rpm/__db* 2. rpm --rebuilddb. ...which should fix rpm. Dear Mr. Alvill, Thank you very nuch for your advice. I have rebuilt the database as you suggested and my management system (updates, add/remove programs) is now up again, I'm asking myself whether database corruption for seemingly unfathomable reasons and that does not require any processing but erasing all extant databases indiscriminately and a no-detail rebuild should perhaps be directly managed by yum so as to spare users, specially newbies, such serious problems (I for one have been pushed to reinstalling CentOS once and again for one week) for so little to program. Could not that be tackled in, for example, the next yum update? Thanks again and best regards, fernando mansito Component: pirut Summary: TBc0c9275d config.py:680:_getsysver:TypeError: rpmdb open failed Traceback (most recent call last): File "/usr/sbin/pirut", line 476, in <module> main() File "/usr/sbin/pirut", line 469, 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 129, in __init__ plugin_types=(yum.plugins.TYPE_CORE,)) File "/usr/lib/python2.5/site-packages/yum/__init__.py", line 113, in doConfigSetup errorlevel=errorlevel) File "/usr/lib/python2.5/site-packages/yum/__init__.py", line 159, in _getConfig self._conf = config.readMainConfig(startupconf) File "/usr/lib/python2.5/site-packages/yum/config.py", line 613, in readMainConfig yumvars['releasever'] = _getsysver(startupconf.installroot, startupconf.distroverpkg) File "/usr/lib/python2.5/site-packages/yum/config.py", line 680, in _getsysver idx = ts.dbMatch('provides', distroverpkg) TypeError: rpmdb open failed Local variables in innermost frame: installroot: / ts: <rpmUtils.transaction.TransactionWrapper instance at 0x85c1f6c> distroverpkg: redhat-release As before, the advice in comment #1 will often solve this problem. As an RFE to automatically fix it... This request was evaluated by Red Hat Engineering for inclusion in a Red Hat Enterprise Linux maintenance release. Red Hat does not currently plan to provide this change in a Red Hat Enterprise Linux update release for currently deployed products. With the goal of minimizing risk of change for deployed systems, and in response to customer and partner requirements, Red Hat takes a conservative approach when evaluating enhancements for inclusion in maintenance updates for currently deployed products. The primary objectives of update releases are to enable new hardware platform support and to resolve critical defects. |