FIX warning: cannot get exclusive lock on /var/lib/rpm/Packages

RegisterLogin
FIX warning: cannot get exclusive lock on /var/lib/rpm/Packages
Post Description: FIX warning: cannot get exclusive lock on /var/lib/rpm/Packages
Tags: FIX, warning:, cannot, get, exclusive, lock, on, /var/lib/rpm/Packages
This Post Was Posted On Feb 29, 2008 By stalionboy #783
Why am I getting this error now?



     Code:
warning: cannot get exclusive lock on /var/lib/rpm/Packages
Leave Your Comments
Reddy
#9432 1
Thanks for your help. I got the solution here for my questions.
Feb 04, 2012 Reply Report abuse
hostman
#3833 2
ill give you the answer to fix this:

check whether a second instance of rpm is already running

the error stated here is usually caused by another instance of rpm already running. killing the other rpm instance should solve the problem.
Apr 20, 2010 Reply Report abuse
asnkighs
#2747 3
what is the use of /var/lock/rpm can you explain please? once you have explained it to me i can understand what you people are talking about
Nov 07, 2009 Reply Report abuse
Sebi
#2461 4
Use this...
rpm --rebuilddb

Thanks,
Sebi
Sep 29, 2009 Reply Report abuse
ramank
#980 5
above method of rebooting the machine seems to be difficult when we don't have access to do so.
is there any method or configuration that can solve this problem which provides multiple login from the same user.
Jan 10, 2008 Reply Report abuse
stalionboy
#979 6
this means your file is being used by another user(locked). Make sure if you are logged in twice into the same machine with the same user, you close one of the sessions.

For example, we had a customer who was logged in twice with root from from different computers using his SSH. He was at work logged in, and he remembered that he also was logged in when he left home from work. So that meant he was logged in as root from home using a SSH connection, and when he got to work, he also logged in as root . When he tried to use the same file (httpd.conf) from work, he couldn't because his session at home was also using the file httpd.conf.

He needed to have his computer the home release the httpd.conf file. But since he was at work, he couldn't do that. The only suggestion we could provide was to reboot the server remotely from work. After he did that, the server rebooted and all the connections (users loggedin) were dropped. When the server rebooted, he logged in with SSH and was able to edit his httpd.conf file.

so basically, if you are getting this error, its because the file is being used by another user. If you are stuck with this issue, do a reboot and that should clear your problem.
Jul 21, 2006 Reply Report abuse
Leave Your Comments...
©2012 Webune Forums - Sun Feb 05, 2012 1:20 pm
Powered by: Webune Forums V3