| Re: Fatal error on running Yum ! "Ivan Marsh" <ivanmarsh******.com> wrote in message
news:1212722173_463819@news.usenet.com...
> On Fri, 06 Jun 2008 02:17:19 +0100, Aaron Gray wrote:
>
>> Went to run Yum and got the following :-
>>
>> [root@xxxxxxxxxxx ~]# yum
>> 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 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
>> [root@xxxxxxxxxxxx ~]#
>>
>> Anyone know whats gone wrong ?
>>
>> and how to fix it if possible ?
>>
>> Many thanks in advance,
>>
>> Aaron
>
> Sounds like the database might be corrupted.
> Have you tried: yum clean all
Jut gives :-
#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 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
Aaron |