在虚拟机中通过yum下载出现Another app is currently holding the yum lock; waiting for it to exit的解决方法

一 错误
在虚拟机中通过yum下载出现Another app is currently holding the yum lock; waiting for it to exit的解决方法

二 解决方法
删除root用户下删除/var/run文件夹下的yum.pid
命令:

rm -rf /var/run/yum.pid

三 通过此命令后再执行yum就可以了

yum install -y nc

在虚拟机中通过yum下载出现Another app is currently holding the yum lock; waiting for it to exit的解决方法