Today I tried to install fonts for GNome desktop and unable to install due yum lock in my server that is load with centos
Error :
[root@localhost ~]# yum install xorg-x11-font*
Loaded plugins: fastestmirror, refresh-packagekit, security
Existing lock /var/run/yum.pid: another copy is running as pid 2600.
Another app is currently holding the yum lock; waiting for it to exit…
The other application is: yum
Memory : 21 M RSS (1.2 GB VSZ)
Started: Mon Oct 14 12:19:29 2013 – 08:47 ago
State : Sleeping, pid: 2600
First i attempt to kill the process
# kill -9 2600
the process could not be stopped
Second i attempt to kill all yum process
# killall -9 yum
still the process could not be stopped
then i shutdown my server and switched on again and still the same result.
finally i remove the yum.pid 2600
after this yum started working fine.
Final solution if you fail to stop the process :
#rm -f /var/run/yum.pid 2600
then update your yum
# yum -y update
Make sure that yum-updatesd is started :
#/etc/init.d/yum-updatesd status
# /etc/init.d/yum-updatesd start
That’s really, really terrible advice.
If the other process no longer exists and the .pid file got stuck around somehow, yeah, you have to remove it. Otherwise you just circumvented a check that exists for extremely important reasons and allowed two processes to operate on the yum database at once, which is extremely likely to cause major problems.
You should first check that you do not have another instance of yum running.
[…] Take Note: For final solution, click here. […]
stupid advice
I am not giving any advice to any one to do this. I am just sharing my experience, if you have something to share what had happened then it will be useful for everyone who see this will learn.
“Nothing is easier than to find a fault, and nothing more difficult than the ability to substitute the proper correction.”
” Thanks to stupid comment “
works fine!!
thank you!!!
I have been looking for solution to this thing, I just found a simple way that you make it work.
# ps -p PID (The PID seen in the yum lock) ie
ps -p3125
# pkill 3125
That is it
Enjoy
Thanks
bhosdike apni bu chudwale
Please check this link: https://www.youtube.com/watch?v=_vd1-uQmD14