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

Share this Article :

I believe that some linux users, especially system administrators encountered this problem and get the message after issue the yum command:

    Existing lock /var/run/yum.pid: another copy is running as pid [pid number].
    Another app is currently holding the yum lock; waiting for it to exit...
    

Example :

    [[email protected] /]# yum install [service name]
    Loaded plugins: fastestmirror
    Existing lock /var/run/yum.pid: another copy is running as pid 20360.
    Another app is currently holding the yum lock; waiting for it to exit...
      The other application is: yum
        Memory :  19 M RSS (396 MB VSZ)
        Started: Sun Mar  6 21:06:51 2011 - 00:29 ago
        State  : Traced/Stopped, pid: 20360
    

Please hit ctrl-c; that’s the key combination to kill any currently running process in a bash shell or terminal.

    Exiting on user cancel.
    

Solution 1:
To remove the pid, please issue command rm -f and follow with yum.pid path and [pid number]

    [[email protected] /]# rm -f /var/run/yum.pid 20360
    

Solution 2:
Find out what is the locking up yum by running:

    [[email protected] /]# ps aux | grep yum
    

Please take note on the [pid number] of the process and run this command to kill the process:

    [[email protected] /]# kill -9 [insert pid]
    


13 Comments

  1. Amit
  2. sheikh
  3. nooz
  4. Ram Iyer
  5. pacho
  6. Peter Nguyen
  7. senthamil
  8. sivakumar
  9. Ben
  10. gopichand
  11. openritwanz

Leave a Reply