如果你在用yum安装软件的时候出现下面的那种问题
出现这种情况的原因可能是系统自动升级正在运行,yum在锁定状态中。 已经有一个yum进程在运行了,所以才会这样的。
下面解决方法:
先用 pkill yum 清除yum进程,如果这个方法不管用的话就可以用下面的方法了;
输入rm -f /var/run/yum.pid来强行解除锁定,然后就可以正常使用你的yum了。