LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Yum Problems (https://www.linuxquestions.org/questions/linux-software-2/yum-problems-710816/)

conormacaoidh 03-11-2009 12:48 PM

Yum Problems
 
I am using Fedora 10 and have just updated my system. Every time I try and install something I get the following error:

Code:

yum install test

Loaded plugins: protectbase, refresh-packagekit
rpmdb: Thread/process 3377/3087496896 failed: Thread died in Berkeley DB library
error: db4 error(-30975) from dbenv->failchk: DB_RUNRECOVERY: Fatal error, run database recovery
error: cannot open Packages index using db3 -  (-30975)
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 192, in _getConfig
    self._conf = config.readMainConfig(startupconf)
  File "/usr/lib/python2.5/site-packages/yum/config.py", line 774, in readMainConfig
    yumvars['releasever'] = _getsysver(startupconf.installroot, startupconf.distroverpkg)
  File "/usr/lib/python2.5/site-packages/yum/config.py", line 844, in _getsysver
    idx = ts.dbMatch('provides', distroverpkg)
TypeError: rpmdb open failed

It's really annoying - does anyone know what might have caused it to happen?

Maligree 03-11-2009 12:53 PM

Try..
Code:

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

..should do the trick.

T74marcell 03-11-2009 02:51 PM

The Fedora 10 default installation has a problematic yum setup. Try to update yum by some other means (another package updater or by downloading the newer yum package). It should work afterwards.

Arch Linux

conormacaoidh 03-12-2009 01:53 PM

Quote:

Originally Posted by Maligree (Post 3472098)
..should do the trick.

That seems to have done it! Thanks


All times are GMT -5. The time now is 12:53 AM.