Another app is currently holding the yum lock; waiting for it to exit…

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

Another:

su -
( your root password when asked )
yum clean all
rpm --rebuilddb

Another:

Lots of responses here – but here’s how I get around this issue. Its similar to other posts where one identifies the yum process/es that is holding the lock on yum and killing that PID/s.

NB: This can be dangerous especially if you kill the wrong PID by mistake.

Code:
 # ps -ef | grep yum
root      3185  1207  0 14:47 pts/1    00:00:00 grep yum
root      3804     1  0 Jan11 ?        00:00:43 /usr/bin/python -tt /usr/sbin/yum-updatesd
# kill -9 3804
# ps -ef | grep yum
root      3197  1207  0 14:48 pts/1    00:00:00 grep yum
# yum update

Another:
Open a terminal.
Become superuser by entering ‘su’ and then the password.
Then,
# cd /var/run/
# dir
Look for the ‘yum.pid‘ file.
# rm -f yum.pid
# dir
Confirm that the ‘yum.pid‘ file has been deleted.
# yum update
This should re-start your update process.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s