In my case, I was connected to a server via VPN (open VPN). Once I ran sudo yum -y update
, all packages were getting updated, along with open-VPN. Once open-VPN package got updated, I was disconnected from the VPN. I logged back in, tried the yum update again and it said another process is holding the yum lock.
I checked with ps ax | grep yum
and the old process was still running. I waited for 5 min for it to "finish", but the process just kept running. Then I thought I could "pull the trigger" with kill, so I ran
kill <PID of the yum update process>
That didn't kill the process. Tried that a few more times, and still no success.
Finally I had to really pull the plug on it, by running:
kill -9 <PID of the yum update process>
Tried yum update again, but same issue. I then ran:
rm -f /var/run/yum.pid
and then tried update and got this output:
Loaded plugins: fastestmirror
Setting up Update Process
Loading mirror speeds from cached hostfile
* base: mirror.sigmanet.com
* epel: mirror.sjc02.svwh.net
* extras: mirrors.vpsie.com
* updates: mirror.pac-12.org
No Packages marked for Update
Believe everything is good, but I didn't like pulling the plug on so many things!
sudo yum -y update
, all packages were getting updated, along with open-VPN. Once open-VPN package got updated, I was disconnected from the VPN. I log back in, try the yum update again and it says the same thing.