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

梓沐發表於2016-02-15
用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即可


```

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/29812844/viewspace-1988770/,如需轉載,請註明出處,否則將追究法律責任。

相關文章