LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 02-25-2016, 04:09 AM   #1
ihowarth
LQ Newbie
 
Registered: Aug 2003
Distribution: Mageia 7.1
Posts: 13

Rep: Reputation: 0
rpm database problem


Running Mageia 5; booted up this morning and the rpm updater, MageiaUpdate, breaks with:

A fatal error occurred: Couldn't open RPM DB() at /usr/lib/perl5/vendor_perl/5.20.1/Rpmdrake/open_db.pm line 74..

Using urpmi from the command line also breaks:

> urpmi rpmdrake
error: rpmdb: BDB0113 Thread/process 14462/140034395273024 failed: BDB1507 Thread died in Berkeley DB library
error: db5 error(-30973) from dbenv->failchk: BDB0087 DB_RUNRECOVERY: Fatal error, run database recovery
error: cannot open Packages index using db5 - (-30973)
error: cannot open Packages database in /var/lib/rpm
unable to open rpmdb

I've looked in /var/lib/rpm, and the contents seem to match those of another system that doesn't have this problem. I haven't (consciously) tinkered with anything recently.

Anyone know how to "run database recovery"? Looking around for previous postings, one option seems to be db<nn>_recover, and i found an rpm for db53_recover for Mageia5, but of course it won't install because of the db problem!

> rpm -Uvh db53_recover-5.3.28-4.mga5.x86_64.rpm
error: rpmdb: BDB0113 Thread/process 14462/140034395273024 failed: BDB1507 Thread died in Berkeley DB library
error: db5 error(-30973) from dbenv->failchk: BDB0087 DB_RUNRECOVERY: Fatal error, run database recovery
error: cannot open Packages index using db5 - (-30973)
error: cannot open Packages database in /var/lib/rpm
warning: db53_recover-5.3.28-4.mga5.x86_64.rpm: Header V3 RSA/SHA1 Signature, key ID 80420f66: NOKEY
error: rpmdb: BDB0113 Thread/process 14462/140034395273024 failed: BDB1507 Thread died in Berkeley DB library
error: db5 error(-30973) from dbenv->failchk: BDB0087 DB_RUNRECOVERY: Fatal error, run database recovery
error: cannot open Packages index using db5 - (-30973)
error: cannot open Packages database in /var/lib/rpm

I don't really want to do a clean install if i can avoid it....

Thx
ion
 
Old 02-25-2016, 06:20 AM   #2
nelz
Member
 
Registered: Aug 2004
Posts: 34

Rep: Reputation: 6
Code:
rpm --rebuilddb
if that doesn't work, first run

Code:
rm /var/lib/rpm/__*
then try again.
 
2 members found this post helpful.
  


Reply



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
rpm database problem janisj Linux - Software 4 01-01-2010 02:10 PM
up2date -u problem (rpm database) bboy-mass Red Hat 5 10-18-2006 04:03 AM
rpm database problem varunbihani Linux - Software 4 06-03-2004 09:47 AM
RPM database problem. max_frei Red Hat 2 03-11-2004 02:03 AM
RPM Database problem BajaNick Red Hat 6 09-05-2003 03:46 AM

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

All times are GMT -5. The time now is 03:00 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
Open Source Consulting | Domain Registration