Centos6.5使用yum安装软件的时候 Another app is currently holding the yum lock; waiting for it to exit......

Loaded plugins: fastestmirror, refresh-packagekit, security
Existing lock /var/run/yum.pid: another copy is running as pid 2135.
Another app is currently holding the yum lock; waiting for it to exit...
  The other application is: PackageKit
    Memory :  43 M RSS (891 MB VSZ)
    Started: Wed Apr  1 03:57:30 2015 - 02:23 ago
    State  : Sleeping, pid: 2135
Another app is currently holding the yum lock; waiting for it to exit...
  The other application is: PackageKit
    Memory :  43 M RSS (891 MB VSZ)
    Started: Wed Apr  1 03:57:30 2015 - 02:25 ago
    State  : Sleeping, pid: 2135
Another app is currently holding the yum lock; waiting for it to exit...
  The other application is: PackageKit
    Memory :  43 M RSS (891 MB VSZ)
    Started: Wed Apr  1 03:57:30 2015 - 02:27 ago
    State  : Running, pid: 2135

这是因为后台可能有其它的软件在执行安装,占用的yum程序

1 .  可以使用 rm -rf /var/run/yum.pid 来强制接触yum锁定,就可以了

2.   等待yum自己解除锁定(个人认为这样好点,它可能在安装系统必要的其它程序,如果强制解除,可能会有问题)

3.   我遇到这个问题的时候等了大概2分钟左右的时间,它就自动解除锁定了

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值