How to resolve Error: rpmdb open failed In CentOS

In this tutorial, How to resolve Error: rpmdb open failed Error In CentOS. I was testing on nginx web server in Centos 7 VM Linode. Unfortunaely, I have install new package with yum command , I got this error message:

error: rpmdb: BDB0113 Thread/process 3050/139803232012096 failed: BDB1507 Thread died in Berkeley DB library
error: db5 error(-30973) from dbenv->failchk: BDB0087 DB_RUNRECOVERY: Fatal error, run database recovery
error: cannot open Packages index using db5 -  (-30973)
error: cannot open Packages database in /var/lib/rpm

Error: rpmdb open failed

It seemes like YUM broke down. I have not run any yum command.

Solve problem, just do the following steps.


First backup the rpm database using command as root user:

# mv /var/lib/rpm/__db* /tmp

Run the following command:

# yum clean all
# yum update

Clean backup

# rm -i /tmp/__db*

I hope this helps you.


Popular posts from this blog

zimbra some services are not running [Solve problem]

How to install and configure zimbra multi server

Bash script list all IP addresses connected to Server