linux 中Another app is currently holding the yum lock; waiting for it to exit...的解决方法

当我们在linux中安装一些 软件时,可能会出现这样的情况

[root@localhost home]# yum install gcc gcc-c++ kernel-devel
Loaded plugins: fastestmirror, langpacks
Existing lock /var/run/yum.pid: another copy is running as pid 12390.
Another app is currently holding the yum lock; waiting for it to exit...
  The other application is: PackageKit
    Memory : 164 M RSS (578 MB VSZ)
    Started: Tue Feb 26 08:09:08 2019 - 11:53 ago
    State  : Sleeping, pid: 12390
Another app is currently holding the yum lock; waiting for it to exit...
  The other application is: PackageKit
    Memory : 172 M RSS (586 MB VSZ)
    Started: Tue Feb 26 08:09:08 2019 - 11:55 ago
    State  : Sleeping, pid: 12390
Another app is currently holding the yum lock; waiting for it to exit...
  The other application is: PackageKit
    Memory : 172 M RSS (586 MB VSZ)
    Started: Tue Feb 26 08:09:08 2019 - 11:57 ago
    State  : Sleeping, pid: 12390
Another app is currently holding the yum lock; waiting for it to exit...
  The other application is: PackageKit
    Memory : 172 M RSS (586 MB VSZ)
    Started: Tue Feb 26 08:09:08 2019 - 11:59 ago
    State  : Sleeping, pid: 12390
Another app is currently holding the yum lock; waiting for it to exit...
  The other application is: PackageKit
    Memory : 172 M RSS (586 MB VSZ)
    Started: Tue Feb 26 08:09:08 2019 - 12:01 ago
    State  : Sleeping, pid: 12390
Another app is currently holding the yum lock; waiting for it to exit...
  The other application is: PackageKit
    Memory : 172 M RSS (586 MB VSZ)
    Started: Tue Feb 26 08:09:08 2019 - 12:03 ago
    State  : Sleeping, pid: 12390
Another app is currently holding the yum lock; waiting for it to exit...
  The other application is: PackageKit
    Memory : 172 M RSS (586 MB VSZ)
    Started: Tue Feb 26 08:09:08 2019 - 12:05 ago
    State  : Sleeping, pid: 12390
Another app is currently holding the yum lock; waiting for it to exit...
  The other application is: PackageKit
    Memory : 172 M RSS (586 MB VSZ)
    Started: Tue Feb 26 08:09:08 2019 - 12:07 ago
    State  : Sleeping, pid: 12390
Another app is currently holding the yum lock; waiting for it to exit...
  The other application is: PackageKit
    Memory : 172 M RSS (586 MB VSZ)
    Started: Tue Feb 26 08:09:08 2019 - 12:09 ago
    State  : Sleeping, pid: 12390
Another app is currently holding the yum lock; waiting for it to exit...
  The other application is: PackageKit
    Memory : 172 M RSS (586 MB VSZ)
    Started: Tue Feb 26 08:09:08 2019 - 12:11 ago
    State  : Sleeping, pid: 12390
Another app is currently holding the yum lock; waiting for it to exit...
  The other application is: PackageKit
    Memory : 172 M RSS (586 MB VSZ)
    Started: Tue Feb 26 08:09:08 2019 - 12:13 ago
    State  : Running, pid: 12390
Another app is currently holding the yum lock; waiting for it to exit...
  The other application is: PackageKit
    Memory : 172 M RSS (586 MB VSZ)
    Started: Tue Feb 26 08:09:08 2019 - 12:15 ago
    State  : Sleeping, pid: 12390
Another app is currently holding the yum lock; waiting for it to exit...
  The other application is: PackageKit
    Memory : 172 M RSS (586 MB VSZ)
    Started: Tue Feb 26 08:09:08 2019 - 12:17 ago
    State  : Sleeping, pid: 12390

解决的方法:

rm -f /var/run/yum.pid 12390

这样再重新输入yum命令就可以了。

 

  • 2
    点赞
  • 10
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值