Boston Linux & Unix (BLU) Home | Calendar | Mail Lists | List Archives | Desktop SIG | Hardware Hacking SIG
Wiki | Flickr | PicasaWeb | Video | Maps & Directions | Installfests | Keysignings
Linux Cafe | Meeting Notes | Blog | Linux Links | Bling | About BLU

BLU Discuss list archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Fedora 8 yum error



On Wed, 2008-11-19 at 07:20 -0500, David Kramer wrote:
> [root at janus pluginconf.d]# yum info poster
> Loaded plugins: fedorakmod, kernel-module, kmdl, priorities
> 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 <module>
>      yummain.user_main(sys.argv[1:], exit_code=True)
>    File "/usr/share/yum-cli/yummain.py", line 229, in user_main
>      errcode = main(args)
>    File "/usr/share/yum-cli/yummain.py", line 84, in main
>      base.getOptionsConfig(args)
>    File "/usr/share/yum-cli/cli.py", line 184, in getOptionsConfig
>      enabled_plugins=self.optparser._splitArg(opts.enableplugins))
>    File "/usr/lib/python2.5/site-packages/yum/__init__.py", line 191, in 
> _getConfig
>      self._conf = config.readMainConfig(startupconf)
>    File "/usr/lib/python2.5/site-packages/yum/config.py", line 753, in 
> readMainConfig
>      yumvars['releasever'] = _getsysver(startupconf.installroot, 
> startupconf.distroverpkg)
>    File "/usr/lib/python2.5/site-packages/yum/config.py", line 823, in 
> _getsysver
>      idx = ts.dbMatch('provides', distroverpkg)
> TypeError: rpmdb open failed

Bleah! I see mis-matched db3 and db4 calls mentioned there... You didn't
upgrade rpm to the Fedora 10 version, did you? Historically, rpm has
used its own internal copy of berkeleydb, which I believe was db3, but
in F10, its switching to the system-provided db4.x.

> So what do I do about this?

Hopefully, this should do the trick:

1) rm -f /var/lib/rpm/__db.*
2) rpmdb --rebuilddb

--jarod








BLU is a member of BostonUserGroups
BLU is a member of BostonUserGroups
We also thank MIT for the use of their facilities.

Valid HTML 4.01! Valid CSS!



Boston Linux & Unix / webmaster@blu.org