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

Jackbox

Active Member
Jan 2, 2016
197
96
74
You are on CentOS or similar and dealing with yum locked up. Fuck!

Code:
Another app is currently holding the yum lock; waiting for it to exit...
  The other application is: yum
    Memory :  57 M RSS (273 MB VSZ)
    Started: Fri Aug  4 12:52:05 2017 - 00:59 ago
    State  : Traced/Stopped, pid: 557

Be signed in to the root user or type "su" (enter) to switch to root.

To restart an update process go ahead with:
cd /var/run/;rm -f yum.pid;yum update

Optionally you may leave out the update part.
 

Jackbox

Active Member
Jan 2, 2016
197
96
74
If it's locked it's probably doing automatic security updates. Just saying xD
Probably but very possibly not always, that's why I made this post.

I was in zombie mode (tired) when I cancelled an install that locked yum. Looked for the PID and there were two I kept trying to kill that were re spawning every time. I got bored and wanted a solution that will work every time. This seems to be the holy dagger. Yum definitely does a lot more than just security updates. It being a whole package manager I would imagine many things could lock it up beyond just security updates.
 
Top