[root@localhost ~]# yum install
yumex
Existing lock /var/run/yum.pid: another copy is running as pid 3807.
Another app is currently holding the yum lock; waiting for it to exit...
Another app is currently holding the yum lock; waiting for it to exit...
Another app is currently holding the yum lock; waiting for it to exit...
Another app is currently holding the yum lock; waiting for it to exit...
Another app is currently holding the yum lock; waiting for it to exit...
Another app is currently holding the yum lock; waiting for it to exit...
Another app is currently holding the yum lock; waiting for it to exit...
Another app is currently holding the yum lock; waiting for it to exit...
Another app is currently holding the yum lock; waiting for it to exit...
Existing lock /var/run/yum.pid: another copy is running as pid 3807.
Another app is currently holding the yum lock; waiting for it to exit...
Another app is currently holding the yum lock; waiting for it to exit...
Another app is currently holding the yum lock; waiting for it to exit...
Another app is currently holding the yum lock; waiting for it to exit...
Another app is currently holding the yum lock; waiting for it to exit...
Another app is currently holding the yum lock; waiting for it to exit...
Another app is currently holding the yum lock; waiting for it to exit...
Another app is currently holding the yum lock; waiting for it to exit...
Another app is currently holding the yum lock; waiting for it to exit...
Another app is currently holding the yum lock; waiting for it to exit...
解决方法:
可能是系统自动升级正在运行,所以yum被锁定了。
可以通过执行rm -rf /var/run/yum.pid
来强行解除锁定,然后你的yum就可以运行了。
本文介绍了解决yum命令因被其他应用程序锁定而无法使用的问题。通过删除/var/run/yum.pid文件可以强制解锁,使用户能够继续使用yum进行软件包管理。

434

被折叠的 条评论
为什么被折叠?



