LinuxQuestions.org
Review your favorite Linux distribution.
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 11-22-2006, 09:11 PM   #1
raim1312
Member
 
Registered: Jun 2006
Location: Rhode Island/Mass
Distribution: YDL on PS3/Ubuntu
Posts: 66

Rep: Reputation: 15
yum error


i recently installed fc6 64 and had used yum several times to install packages. i then installed jdk and attempted to edit the classpath but i probably messed up with the syntax because when i restarted my computer x wouldnt start. so i removed the line and everything seemed fine. but now when i try to use yum i get this error:

Loading "installonlyn" plugin
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 85, in main
base.getOptionsConfig(args)
File "/usr/share/yum-cli/cli.py", line 199, in getOptionsConfig
errorlevel=opts.errorlevel)
File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 125, in doConfigSetup
self.conf = config.readMainConfig(startupconf)
File "/usr/lib/python2.4/site-packages/yum/config.py", line 597, in readMainConfig
yumvars['releasever'] = _getsysver(startupconf.installroot, startupconf.distroverpkg)
File "/usr/lib/python2.4/site-packages/yum/config.py", line 656, in _getsysver
idx = ts.dbMatch('provides', distroverpkg)
TypeError: rpmdb open failed

can somebody help me?
 
Old 11-22-2006, 09:27 PM   #2
vxc69
Member
 
Registered: Jul 2004
Distribution: Ubuntu
Posts: 387

Rep: Reputation: 33
Try:
rm -f /var/lib/rpm/__db*
db_verify /var/lib/rpm/Packages
rpm --rebuilddb



vxc
 
Old 11-22-2006, 10:30 PM   #3
raim1312
Member
 
Registered: Jun 2006
Location: Rhode Island/Mass
Distribution: YDL on PS3/Ubuntu
Posts: 66

Original Poster
Rep: Reputation: 15
i get this when using "db_verify /var/lib/rpm/Packages":

bash: db_verify: command not found

is there an alternative?

also i tried rpm --rebuilddb and got this:

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)
 
Old 11-22-2006, 11:06 PM   #4
vxc69
Member
 
Registered: Jul 2004
Distribution: Ubuntu
Posts: 387

Rep: Reputation: 33
Quote:
Originally Posted by raim1312
i get this when using "db_verify /var/lib/rpm/Packages":

bash: db_verify: command not found

is there an alternative?

also i tried rpm --rebuilddb and got this:

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)

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

The command above has two underscores in it _ _db*. If it still doesn't work it doesn't look good.
 
Old 11-23-2006, 09:41 AM   #5
raim1312
Member
 
Registered: Jun 2006
Location: Rhode Island/Mass
Distribution: YDL on PS3/Ubuntu
Posts: 66

Original Poster
Rep: Reputation: 15
db_verify still doesnt work but rpm --rebuilddb did work and yum is working again. thank you
 
  


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
Got error with yum. crime Linux - General 5 11-05-2006 10:53 AM
Yum Error aviceda Fedora 3 04-17-2006 10:35 AM
Yum Error Servius Linux - Newbie 2 04-28-2005 08:25 PM
error when using yum Paintball_Star7 Fedora 2 03-08-2005 01:14 PM
yum I/O Error bornhj Fedora 3 10-07-2004 05:27 AM

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

All times are GMT -5. The time now is 10:38 AM.

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
Open Source Consulting | Domain Registration