Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

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
my_rpm-3.0.0-27
> 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 stackoverflow.com Mar 17 '13 at 10:50

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

2  
    
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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .