PDA

View Full Version : yum is broken..



tankboy611
27th November 2006, 04:22 PM
I tried to update yum on my FC5 setup, and ran into this problem

[root@localhost /]# yum update
rpmdb: lock_downgrade: Lock is no longer valid
error: cannot open Packages index using db3 - Invalid argument (22)
error: cannot open Packages database in /var/lib/rpm
Traceback (most recent call last):
File "/usr/bin/yum", line 29, in ?
yummain.main(sys.argv[1:])
File "/usr/share/yum-cli/yummain.py", line 80, in main
base.getOptionsConfig(args)
File "/usr/share/yum-cli/cli.py", line 177, in getOptionsConfig
self.doConfigSetup(fn=opts.conffile, root=root)
File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 102, in doConfigSetup
self.conf = config.readMainConfig(fn, root)
File "/usr/lib/python2.4/site-packages/yum/config.py", line 589, in readMainConfig
vars['releasever'] = _getsysver(earlyconf.installroot, earlyconf.distroverpkg)
File "/usr/lib/python2.4/site-packages/yum/config.py", line 689, in _getsysver idx = ts.dbMatch('provides', distroverpkg)
TypeError: rpmdb open failed

can anyone tell me what these error messages are trying to tell me? Thanks in advance.

wesamel
27th November 2006, 05:29 PM
Try "yum clean all" in the terminal.

tankboy611
27th November 2006, 05:32 PM
Try "yum clean all" in the terminal.
tried it and i still get the same error messages

[root@localhost /]# yum clean all
rpmdb: lock_downgrade: Lock is no longer valid
error: cannot open Packages index using db3 - Invalid argument (22)
error: cannot open Packages database in /var/lib/rpm
Traceback (most recent call last):
File "/usr/bin/yum", line 29, in ?
yummain.main(sys.argv[1:])
File "/usr/share/yum-cli/yummain.py", line 80, in main
base.getOptionsConfig(args)
File "/usr/share/yum-cli/cli.py", line 177, in getOptionsConfig
self.doConfigSetup(fn=opts.conffile, root=root)
File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 102, in doConfigSetup
self.conf = config.readMainConfig(fn, root)
File "/usr/lib/python2.4/site-packages/yum/config.py", line 589, in readMainConfig
vars['releasever'] = _getsysver(earlyconf.installroot, earlyconf.distroverpkg)
File "/usr/lib/python2.4/site-packages/yum/config.py", line 689, in _getsysver idx = ts.dbMatch('provides', distroverpkg)
TypeError: rpmdb open failed


same thing.. but thanks for the help though...

wesamel
27th November 2006, 05:54 PM
Ok, here we go. I remember having a similar problem a few weeks ago, and I solved it with a few commands in the terminal. Apparently there was a problem with the rpm db or something, and deleting then rebuilding it fixed the problem. Try this:

rm /var/lib/rpm/__db*
rpm --rebuilddb
yum clean all

I hope it works.

tankboy611
27th November 2006, 06:06 PM
Ok, here we go. I remember having a similar problem a few weeks ago, and I solved it with a few commands in the terminal. Apparently there was a problem with the rpm db or something, and deleting then rebuilding it fixed the problem. Try this:

rm /var/lib/rpm/__db*
rpm --rebuilddb
yum clean all

I hope it works.
thanks wesamel... it worked...

brunson
27th November 2006, 06:23 PM
Has rpmlib or rpm-python been updated lately? I'm seeing problems with locks on the rpm Packages.