Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Db_runrecovery

Status
Not open for further replies.

acidbrain

Technical User
Sep 2, 2002
67
RO
Hi there,
I have the following problem:

[root@homee root]# up2date -l
rpmdb: fatal region error detected; run recovery
error: db4 error(-30982) from dbenv->open: DB_RUNRECOVERY: Fatal error, run database recovery
error: cannot open Packages index using db3 - (-30982)
error: cannot open Packages database in /var/lib/rpm
Traceback (most recent call last):
File "/usr/sbin/up2date", line 993, in ?
main()
File "/usr/sbin/up2date", line 601, in main
ret = sanityChecks(fromDaemon, hasGui)
File "/usr/sbin/up2date", line 272, in sanityChecks
if cfg["useGPG"] and gpgUtils.checkGPGInstallation() == 2:
File "gpgUtils.py", line 33, in checkGPGInstallation
File "gpgUtils.py", line 71, in findKey
File "rpmUtils.py", line 111, in installedHeadersNameVersion
TypeError: rpmdb open failed

Then i did this: rmp --rebuilddb and got this:
[root@homee root]# rpm --rebuilddb
rpmdb: fatal region error detected; run recovery
error: db4 error(-30982) from dbenv->open: DB_RUNRECOVERY: Fatal error, run database recovery
error: cannot open Packages index

What to do to get rid ot this error, any suggestions?
Thanks alot :)

 
Afterall i think i found a solution.
I did this:

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

and it worked. Hope this will be usefull.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top