| « OOo Update | Blog update » |
Rpm errror about Lock table
If you ever get stuck in a situation like this, when anything you do with rpm reports errors in the Lock table, or in the database. eg:
rpmdb: Lock table is out of available locker entries error: db4 error(22) from db->close: Invalid argument
That can be fixed:
- Make sure that yum is not running
- Make sure that rpm itself is not running
- Backup the Packages file from /var/lib/rpm
- Make yet another copy of the Packages file from /var/lib/rpm :D
- remove *all* files in /var/lib/rpm
- Copy the Packages file you backed up to /var/lib/rpm
- as root run : chown -R root:root /var/lib/rpm
- as root run : rpm --rebuilddb
That should be it, you can now use rpm and yum again.
- KB