ITPub博客

首页 > Linux操作系统 > Linux操作系统 > Another app is currently holding the yum lock解决方法

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

原创 Linux操作系统 作者:梓沐 时间:2016-02-15 09:16:30 0 删除 编辑
用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博客 ” ,链接:https://blog.itpub.net/29812844/viewspace-1988770/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论
擅长PLS/QL开发,SQL调优和改写,数据库设计

注册时间:2014-08-18

  • 博文量
    161
  • 访问量
    1204437