LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-11-2009, 01:48 PM   #1
conormacaoidh
Member
 
Registered: Mar 2009
Distribution: Fedora
Posts: 41

Rep: Reputation: 15
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?
 
Old 03-11-2009, 01:53 PM   #2
Maligree
Member
 
Registered: Mar 2008
Distribution: Gentoo, CentOS, Fedora, Arch
Posts: 231
Blog Entries: 1

Rep: Reputation: 42
Try..
Code:
rm -f /var/lib/rpm/__db*
rpm --rebuilddb
..should do the trick.

Last edited by Maligree; 03-11-2009 at 01:57 PM. Reason: I got confused.
 
Old 03-11-2009, 03:51 PM   #3
T74marcell
Member
 
Registered: Mar 2009
Posts: 102

Rep: Reputation: 18
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

Last edited by T74marcell; 03-14-2009 at 02:10 AM.
 
Old 03-12-2009, 02:53 PM   #4
conormacaoidh
Member
 
Registered: Mar 2009
Distribution: Fedora
Posts: 41

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by Maligree View Post
..should do the trick.
That seems to have done it! Thanks
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Yum problems alexm21 Linux - Newbie 1 11-05-2008 12:31 AM
Yum problems linuxdummy Fedora 11 01-24-2008 03:36 AM
yum problems ackerleytng Linux - Software 2 11-06-2005 08:13 PM
problems with yum realcr Linux - Software 3 09-01-2005 04:31 PM
problems with yum maybbach Linux - Software 5 10-19-2004 06:27 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:30 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration