UnixServerAdmin

Server Administration & Management

How to Fix rpmdb: unable to join the environment

This post will probably help you to fix an error occurring when you try to upgrade some package like this:

rpmdb: unable to join the environment
error: db4 error(11) from dbenv->open: Resource temporarily unavailable
error: cannot open Packages index using db3 – Resource temporarily unavailable (11)
error: cannot open Packages database in /var/lib/rpm
warning: /root/webmin-1.360-1.noarch.rpm: V3 DSA signature: NOKEY, key ID 11f63c51
rpmdb: unable to join the environment
error: db4 error(11) from dbenv->open: Resource temporarily unavailable
error: cannot open Packages database in /var/lib/rpm
rpmdb: unable to join the environment
error: db4 error(11) from dbenv->open: Resource temporarily unavailable
error: cannot open Packages database in /var/lib/rpm

How To Fix :-

# rm -f /var/lib/rpm/__db*     (Remove Old Lock Files running this command)

# rpm -vv –rebuilddb     (Now you have to rebuild RPM database)

# yum clean all

# yum update all

April 30, 2014 - Posted by | Tips & Tricks, Unix/Linux | , ,

2 Comments »

  1. Does it impact any service which is live in the server or flush out some server setting like so..

    Comment by jaswant | December 20, 2016 | Reply

  2. thanks! I skipped the rm step above and you fixed my (slightly different) issue – appreciate it!

    Comment by chloe | May 25, 2018 | Reply


Leave a comment