1. 首页
  2. Linux

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

centos 7 yum解除禁用

Another app is currently holding the yum lock; waiting for it to exit...
The other application is: PackageKit
Memory : 153 M RSS (266 MB VSZ)
Started: Thu Jul 12 00:03:05 2012 - 06:17 ago
State : Sleeping, pid: 3201
Another app is currently holding the yum lock; waiting for it to exit...
The other application is: PackageKit
Memory : 153 M RSS (266 MB VSZ)
Started: Thu Jul 12 00:03:05 2012 - 06:19 ago
State : Sleeping, pid: 3201

这是应为yum为锁定状态,一般都是在运行,所以无法执行当前命令。

解决方法:

可通过删除进程来强行解除锁定 命令: rm -rf /var/run/yum.pid

END

原创文章,作者:calvin chan,如若转载,请注明出处:https://www.calvinyuki.com/306.html

发表评论

电子邮件地址不会被公开。 必填项已用*标注