Yum update fatal error

Craig Preston duffman23 at gmail.com
Sat Mar 25 01:18:19 UTC 2006


Did this as a fix and seems to be ok again now. -

cd /var/lib/rpm
rm -f __db*

rpm --rebuilddb


On 25/03/06, Craig Preston <duffman23 at gmail.com> wrote:
>
> I have installed FC5 and all was working fine. However this morning I did
> a yum update and it caused a fatal error halfway through the install. Now
> when i run yum I get the following error -
>
> 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 574, in
> readMainConfig
>     vars['releasever'] = _getsysver(earlyconf.installroot,
> earlyconf.distroverpkg)
>   File "/usr/lib/python2.4/site-packages/yum/config.py", line 674, in
> _getsysver
>     idx = ts.dbMatch('provides', distroverpkg)
> TypeError: rpmdb open failed
>
> I'm not an expert in Linux troubleshooting, any help would be appreciated.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/fedora-list/attachments/20060325/0b17e5ee/attachment-0001.htm>


More information about the fedora-list mailing list