PDA

View Full Version : Error: Another app is currently holding the yum lock


tech291083
26th July 2012, 06:49 AM
Hi,

I am using Fedora 17 LXDE 32+ bit distro and this is error I am getting in a terminal when I try to install a package being root. Thanks.



[root@localhost john]# yum install python*
Loaded plugins: aliases, auto-update-debuginfo, changelog, dellsysid,
: downloadonly, fastestmirror, filter-data, fs-snapshot, keys,
: langpacks, list-data, local, merge-conf, post-transaction-
: actions, presto, priorities, protectbase, ps, puppetverify,
: refresh-packagekit, refresh-updatesd, remove-with-leaves, rpm-
: warm-cache, security, show-leaves, tmprepo, tsflags, upgrade-
: helper, verify, versionlock
Existing lock /var/run/yum.pid: another copy is running as pid 1686.
Another app is currently holding the yum lock; waiting for it to exit...
The other application is: yum
Memory : 31 M RSS (117 MB VSZ)
Started: Thu Jul 26 10:25:08 2012 - 52:48 ago
State : Sleeping, pid: 1686
Another app is currently holding the yum lock; waiting for it to exit...
The other application is: yum
Memory : 31 M RSS (117 MB VSZ)
Started: Thu Jul 26 10:25:08 2012 - 52:50 ago
State : Sleeping, pid: 1686

Bazu135
26th July 2012, 07:52 AM
Try entering ps -p1686 in a terminal - that'll tell you which process is holding the lock.

If you feel it shouldn't be, you can kill the process (kill 1686), but obviously you want to be careful about this in case the process is in the middle of something!

Edit: Apologies; forgot that it already says yum has the lock. Too early for me; my cup of tea hasn't kicked in :doh: The second half of my reply stands though; if you're sure that you don't already have an instance of yum open somewhere else (remembering to allow for GUI package managers etc), you can consider killing it - on your own head be it though! ;)

glway
26th July 2012, 12:34 PM
sudo yum-complete-transaction

that should take care of it.

tech291083
26th July 2012, 01:48 PM
Thanks you friends, here is what I did and it worked...



ps aux | grep yum


Then I killed the process


ps -e | grep yum
kill -SIGKILL 1686

Ihatewindows
18th October 2012, 06:02 PM
Yeah, another way is to go into your system monitor and kill yum.

Belen de Umbria Instagram Photos - Leesburg Photos - Chester