PDA

View Full Version : Yum wont work HELP



zamok
28th October 2006, 11:47 PM
im kinda a noob when it come to linux. even tho ive been using it for years i still have probs.
for some reason theres a bug in YUM and it wont let me install anything.
i even did YUM Clean and it said this:

rpmdb: PANIC: fatal region error detected; run recovery
error: db4 error(-30977) from dbenv->open: DB_RUNRECOVERY: Fatal error, run database recovery
error: cannot open Packages index using db3 - (-30977)
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 85, in main
base.getOptionsConfig(args)
File "/usr/share/yum-cli/cli.py", line 199, in getOptionsConfig
errorlevel=opts.errorlevel)
File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 125, in doConfigSetup
self.conf = config.readMainConfig(startupconf)
File "/usr/lib/python2.4/site-packages/yum/config.py", line 597, in readMainConfig
vars['releasever'] = _getsysver(startupconf.installroot, startupconf.distroverpkg)
File "/usr/lib/python2.4/site-packages/yum/config.py", line 656, in _getsysver
idx = ts.dbMatch('provides', distroverpkg)
TypeError: rpmdb open failed



if anyone can help it would be great.

heres the bug

bob
29th October 2006, 12:43 AM
This looks very much like the same thing: http://forums.fedoraforum.org/showthread.php?p=657848#post657848

If you do use Chitlesh's fix, please notice that there's a double underscore( _ _) before the db.00