Errors

Unable To Update CentOS Server Error rpmdb open failed

In this article, we will see how to resolve unable to update CentOS server error rpmdb open failed issue.

Are you getting an error while updating packages on CentOS server? This article will guide you to solve the issue.

Error logs similar to below log that we encountered:

error: db5 error(11) from dbenv->open: Resource temporarily unavailable
error: cannot open Packages index using db5 – Resource temporarily unavailable (11)
error: cannot open Packages database in /var/lib/rpm
CRITICAL:yum.main:

Error: rpmdb open failed

To resolve it follow these steps:

1. Access the server using SSH with root user
2. Stash all the headers files on which yum uses for dependency resolution

# yum clean headers

3. Clean yum packages cache

# yum clean packages

4. Clean metadata

# yum clean metadata

5. Clean dbcache

# yum clean dbcache

6. Clean remaining things

# yum clean all

7. Remove clean all RPM database files

# rm -f /var/lib/rpm/__db.*

8. Rebuilt RPM Database

# rpm -vv –rebuilddb

9. Now run the update command

# yum update

If it doesn’t solve the issue, HostPerl’s server management plan will help you.

[Need assistance to fix this error or install tools? We’ll help you.]

Related Articles