rpmdb: fatal region error detected; run recovery

If you get this error :

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

It comes from a lock file and some old datbase files that have been left over. Just clear out the /var/lib/rpm directory, rebuild rpm and it should work fine.

#cd /var/lib/rpm
#rm -f /var/lib/rpm/__db*
#rpm –rebuilddb


You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

AddThis Social Bookmark Button

One Response to “rpmdb: fatal region error detected; run recovery”

  1. Thank you very much, this help me!

Leave a Reply

*
To prove that you're not a bot, enter this code
Anti-Spam Image