关于我们

质量为本、客户为根、勇于拼搏、务实创新

< 返回新闻公共列表

Another app is currently holding the yum lock解决方法

发布时间:2023-02-27 13:54:35
1491984010112764.jpg

用yum安装包有时候会提示如下错误:

```
Another app is currently holding the yum lock; waiting for it to exit...
  The other application is: PackageKit
    Memory : 128 M RSS (439 MB VSZ)
    Started: Fri Aug 28 08:08:31 2015 - 48:25 ago
    State  : Sleeping, pid: 3462

```
临时解决方法:

```
 执行 rm -f /var/run/yum.pid
```
然后重新执行yum就可以了


永久解决方法:永久禁止该错误


```
[root@oracle pluginconf.d]# cd /etc/yum/pluginconf.d/
[root@oracle pluginconf.d]# ls
product-id.conf  refresh-packagekit.conf  rhnplugin.conf  security.conf  subscription-manager.conf
[root@oracle pluginconf.d]# vim refresh-packagekit.conf
[main]
enabled=0  --将原来的1改成0即可



/template/Home/8a/PC/Static