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</pre>
<pre class="prettyprint"><code><span class="pln">rm </span><span class="pun">-</span><span class="pln">f __</span><span class="pun">*
<pre class="prettyprint"><code><span class="pln">rpm </span><span class="pun">--</span><span class="pln">rebuilddb</span></code></pre>



Leave a Reply

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

You are commenting using your 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 )

Google+ photo

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

Connecting to %s