Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

1 Answer 1

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

 
discard

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.