Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 23rd August 2009, 05:31 AM
jackfruit501 Offline
Registered User
 
Join Date: Apr 2006
Posts: 38
linuxfirefox
More RPM Database Corruption and YUM Problems

Hi Hlingler,

When I yum update F10 today I get the following error

sudo yum -y update
Loaded plugins: allowdowngrade, fastestmirror, kernel-module, presto,
: priorities, protect-packages, protectbase, refresh-packagekit,
: security
rpmdb: PANIC: fatal region error detected; run recovery
error: db4 error(-30975) from dbenv->open: 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 309, in user_main
errcode = main(args)
File "/usr/share/yum-cli/yummain.py", line 157, in main
base.getOptionsConfig(args)
File "/usr/share/yum-cli/cli.py", line 189, in getOptionsConfig
self.conf
File "/usr/lib/python2.5/site-packages/yum/__init__.py", line 652, in <lambda>
conf = property(fget=lambda self: self._getConfig(),
File "/usr/lib/python2.5/site-packages/yum/__init__.py", line 239, in _getConfig
self._conf = config.readMainConfig(startupconf)
File "/usr/lib/python2.5/site-packages/yum/config.py", line 794, in readMainConfig
yumvars['releasever'] = _getsysver(startupconf.installroot, startupconf.distroverpkg)
File "/usr/lib/python2.5/site-packages/yum/config.py", line 867, in _getsysver
idx = ts.dbMatch('provides', distroverpkg)
TypeError: rpmdb open failed

Yesterday on yum update I had

rpmdb: PANIC: fatal region error detected; run recovery
error: db4 error(-30975) from db->close: DB_RUNRECOVERY: Fatal error, run database recovery
rpmdb: PANIC: fatal region error detected; run recovery
error: db4 error(-30975) from db->close: DB_RUNRECOVERY: Fatal error, run database recovery
rpmdb: PANIC: fatal region error detected; run recovery
error: db4 error(-30975) from dbenv->close: DB_RUNRECOVERY: Fatal error, run database recovery

Any help would be most welcome.

Jack
Reply With Quote
  #2  
Old 23rd August 2009, 05:41 AM
Hlingler's Avatar
Hlingler Offline
Administrator
 
Join Date: Sep 2006
Location: Connellsville, PA, USA
Posts: 11,289
linuxopera
Sure looks like a plain old corrupt RPM database. Fix it: http://www.rpm.org/wiki/Docs/RpmRecovery

Try removing the stale locks first, then if that doesn't fix, do the whole repair.

Was there some power failure or such recently that interrupted YUM or RPM before they had completed a transaction ? That's usually what corrupts the RPM database.

V
Reply With Quote
  #3  
Old 23rd August 2009, 10:50 AM
jackfruit501 Offline
Registered User
 
Join Date: Apr 2006
Posts: 38
linuxfirefox
Hi Hlingler,

I have fixed the corrupted RPM database as in the RpmRecovery wiki.
Yum update after that , I get the error as follows :

$ sudo yum clean all
Loaded plugins: allowdowngrade, fastestmirror, kernel-module, presto,
: priorities, protect-packages, protectbase, refresh-packagekit,
: security
Cleaning up Everything
Cleaning up list of fastest mirrors
$ sudo yum clean metadata
Loaded plugins: allowdowngrade, fastestmirror, kernel-module, presto,
: priorities, protect-packages, protectbase, refresh-packagekit,
: security
0 metadata files removed
0 sqlite files removed
0 metadata files removed
$ sudo yum -y update
Loaded plugins: allowdowngrade, fastestmirror, kernel-module, presto,
: priorities, protect-packages, protectbase, refresh-packagekit,
: security
Determining fastest mirrors
Could not retrieve mirrorlist http://mirrors.fedoraproject.org/mirrorlist?repo=fedora-$releasever&arch=i386 error was
[Errno 4] IOError: <urlopen error (-3, 'Temporary failure in name resolution')>
Error: Cannot find a valid baseurl for repo: fedora
$ sudo yum -y update
Loaded plugins: allowdowngrade, fastestmirror, kernel-module, presto,
: priorities, protect-packages, protectbase, refresh-packagekit,
: security
Loading mirror speeds from cached hostfile
Error: Cannot find a valid baseurl for repo: fedora

Thanks for the quick response.

Jack
Reply With Quote
  #4  
Old 23rd August 2009, 06:22 PM
Hlingler's Avatar
Hlingler Offline
Administrator
 
Join Date: Sep 2006
Location: Connellsville, PA, USA
Posts: 11,289
linuxopera
Code:
Could not retrieve mirrorlist http://mirrors.fedoraproject.org/mirrorlist?repo=fedora-$releasever&arch=i386 error was
[Errno 4] IOError: <urlopen error (-3, 'Temporary failure in name resolution')>
Error: Cannot find a valid baseurl for repo: fedora
This looks like a parsing error: '$releasever' was supposed to be replaced by '11' (or 10, 9, or whatever), just like '$arch' is replaced by 'i386'. I don't know why.

Please post files:
/etc/yum.repos.d/fedora.repo
/etc/fedora-release


V

P.S. I'm moving these posts to a new thread, since this problem is not the same as the OP.
Reply With Quote
  #5  
Old 24th August 2009, 01:25 AM
jackfruit501 Offline
Registered User
 
Join Date: Apr 2006
Posts: 38
linuxfedorafirefox
Hi Hlingler,

I have corrupted the whole F10 when I tried to fix the broken packages using synaptic. Anyway I had a clone of the harddisk done about 2 weeks ago. Now everything is OK. The moral is not to disconnect while updating and also not to mix yum with synaptic!

Thanks Hlingler once again.

Jack
Reply With Quote
Reply

Tags
corruption, database, problems, rpm, yum

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Fedora Core 5 Anaconda Corruption and Installation Problems Loser523 Installation and Live Media 5 8th February 2007 04:11 PM
FC6 RPM database corruption ettlz Using Fedora 7 23rd November 2006 09:21 PM
DAG Repository Issue (Heanet corruption problems) tchung News 2 12th May 2005 05:37 AM


Current GMT-time: 09:03 (Thursday, 20-06-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat