Break/Fix: RPM rpmdb: Lock table is out of available locker entries

The full error may look something like this:

-------------------------------------------------------------------------
    rpmdb: Lock table is out of available locker entries
    error: db4 error(22) from db->close: Invalid argument
    error: cannot open Packages index using db3 - Cannot allocate memory (12)
    error: cannot open Packages database in /var/lib/rpm
-------------------------------------------------------------------------

Make a backup of /var/lib/rpm in case you break something:

tar -cvzf rpmdb-backup.tar.gz /var/lib/rpm

Remove the Berkeley databases that rpm uses:

rm /var/lib/rpm/__db.00*

Rebuild the RPM databases (may take a short while):

rpm --rebuilddb

Now, check to verify this worked:

rpm -qa | grep openssl

You’re done!

1 thought on “Break/Fix: RPM rpmdb: Lock table is out of available locker entries”

Leave a Reply

Your email address will not be published. Required fields are marked *