Now to resolve error failchk DB_RUNRECOVERY Fatal error run database recovery

how-resolve-error-failchk-DB_RUNRECOVERY-Fatal-error-run-database-recovery

Now to resolve error failchk DB_RUNRECOVERY Fatal error run database recovery

Now to resolve error failchk DB_RUNRECOVERY Fatal error run database recovery

When trying to install an application through yum [Yellowdog Updater, Modified] You may get an error message saying from dbenv->failchk: DB_RUNRECOVERY: Fatal error, run database recovery

error message is shown below.

What should we do now, its simple, You first try clearing the yum repository as below.

You were still shown the error message as above, You will need to rebuild the rpm database.

Try the command rpm –rebuilddb

You will get the error message as below.

Before rebuilding, we have to first remove the existing __db. files or move it somewhere.

change the director to /var/lib/rpm where the rpm details are stored.

You see on the above command result, __db.001, __db.003 and etc.. this are the files that needs to rebuilt.

Now for safetyI created a folder named ddb and moved the files to it.

After moving the files,
Use the command rpm –rebuilddb

Before we start installing any packages, we need to clean the rpm repository

You can now able to install application using yum without any issues.

That is all, this help you in resolving the yum db corrupt issue

Comments

This site uses Akismet to reduce spam. Learn how your comment data is processed.