YUM lock - other application is... yum?

When trying to run yum, I get the following error:

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

The other application is: yum

I've manually killed each yum process id, but it keeps on occurring (other application is: yum), although the days ago become more recent (used to be 3 days ago, then 1 day ago)..

Any idea what's wrong?


Probably because yum has previously been shutdown uncleanly it's left behind an old lock file.

Try

sudo killall yum
sudo rm /var/run/yum.pid

then restart yum