linux · Uncategorized

linux: fatal error, run database recovery

When trying to update your Fedora using dnf and a failure like this appear:


sudo dnerror: db5 error(-30973) from dbenv;failchk: BDB0087 DB_RUNRECOVERY: Fatal error, run database recovery

Try the following:


cd /var/lib/rpm
rm -f __*
rpmdb --rebuilddb

 

 

 

One thought on “linux: fatal error, run database recovery

  1. Parsing through the html pretty print….
    The correct command is: rpmdb –rebuilddb

    And thanks for posting the tip. Brand new install of F27 going sideways when I tried to install my package list.

    Turns out I corrupted the rpmdb by using dnf –exclude which appears to be a bug in dnf.

    Like

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s