Wake up sleepy-head, someone around you is thinking their way into the future....
« OOo Update Blog update »

Rpm errror about Lock table

Permalink 16/Jan/2008 14:51 , Categories: Linux, Software , Tags: centos, package management, rpm

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

Leave a comment »

No feedback yet

Leave a comment


Your email address will not be revealed on this site.

Your URL will be displayed.
(Line breaks become <br />)
(Name, email & website)
(Allow users to contact you through a message form (your email will not be revealed.)

Welcome to my Blog. Various bits of rambling and going-on's find their way here. If you have something to say, I would love to hear it from you.

Search

XML Feeds

powered by b2evolution free blog software

Contact | Blog template by Asevo