Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm encountering a problem removing an installed rpm.

> rpm -q  my_rpm
> rpm -e my_rpm
error: can't create transaction lock on /var/lib/rpm/__db.000

I have also tried to run it as super user. It doesn't work either.

Does anyone have an idea what could be the problem?

share|improve this question

migrated from Mar 17 '13 at 10:50

This question came from our site for professional and enthusiast programmers.

Did you run ps -ef | grep rpm to see if another rpm instance is running? – Eran Ben-Natan Mar 17 '13 at 14:17

This usually means that something else is using the rpm database. If you have a graphical package manager (such as an update manager or a yum gui) open, close it and try again. If you can't find anything, just log out and log back in again.

In any case, rpm commands should always be run as root, they won't work otherwise.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.