FIX Warning: Cannot Get Exclusive Lock On /var/lib/rpm/Packages
fix warning: cannot get exclusive lock on /var/lib/rpm/packages
fix, warning, cannot, get, exclusive, lock, on, var, lib, rpm, packages
FIX Warning: Cannot Get Exclusive Lock On /var/lib/rpm/Packages
Post Description: fix warning: cannot get exclusive lock on /var/lib/rpm/packages
POST# 173
Posted On: Fri Feb 29, 2008 12:01 pm
stalionboy
Topic: FIX Warning: Cannot Get Exclusive Lock On /var/lib/rpm/Packages
Why am I getting this error now?



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


Fri Jul 21, 2006 8:27 am - Re: FIX Warning: Cannot Get Exclusive Lock On /var/lib/rpm/Packages
1
stalionboy
Reply #659
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.
Thu Jan 10, 2008 8:01 pm - Re: FIX Warning: Cannot Get Exclusive Lock On /var/lib/rpm/Packages
2
ramank
Reply #660
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.

What do you think?

* name:  

* email:  

* Please enter comments:


Receive Replies on my Comments
(An email will be sent to you when someone replies to your comments)

Add image to comments
yes no             upload