Couple of days ago, I killed yumex because it hung. Afterthat, everything hung. I couldn't run rpm or yum in command line. I tried rebuilding the database with rpm --rebuild but to no avail. Found a solution after googling. The solution :
rm /var/lib/rpm/__db.*
The above command removes any locks left on the rpm database and now you should able to use rpm command. Make sure you run the above command as root for obvious reason.
2 comments:
I use CentOS 4.1, nowadays i see this issue very often. do u think this is a bug with RPM version. what u suggest to fix this one permanently.
Thanks
Sabeer
i don't know but i think you can say that it is a bug. rpm should recover itself in this situation. Pls test with CentOS 5.1 to see whether this thing could happen again. If yes, i think you should file a bug report to centos team.
Post a Comment