rpmdb: Lock table is out of available locker entries
If while using ‘yum’ or ‘rpm’ you receive the following error:
rpmdb: Lock table is out of available locker entries
Your RPM dB files are screwed up… here is how you unscrew them!
This error tell you the Berkley database files which RPM uses are damaged and in order to clear the error you must rebuild the Berkley dB files from scratch.
Here is how you fix this error:
- Make a backup of your current files
- Remove the damaged files
- Rebuild your RPM Berkley dB files
- Use yum again
Here is the command walk through:
- As root, execute this:
cd /root; tar cvzf rpm-backup.tar.gz /var/lib/rpm
- Remove the Berkeley dB files which yum and rpm use:
rm /var/lib/rpm/__db.00*
- Instruct rpm to rebuild the databases files:
```bash rpm --rebuilddb ``` - Test your yum command again:
yum install somepackage
This post is licensed under CC BY 4.0 by the author.