yum install安装时 提示“Another app is currently holding the yum lock; waiting for it to exit...”原因和解决

26 篇文章 0 订阅

在使用yum安装时提示“Another app is currently holding the yum lock; waiting for it to exit...”

如下:

[root@iZ8vb7grbyvlb154qzo6nyZ ~]# yum install jenkins-2.204.1-1.1.noarch.rpm -y
Loaded plugins: fastestmirror
Existing lock /var/run/yum.pid: another copy is running as pid 414.
Another app is currently holding the yum lock; waiting for it to exit...
  The other application is: yum
    Memory :  55 M RSS (534 MB VSZ)
    Started: Mon Jul 20 17:15:20 2020 - 01:43 ago
    State  : Traced/Stopped, pid: 414
Another app is currently holding the yum lock; waiting for it to exit...
  The other application is: yum
    Memory :  55 M RSS (534 MB VSZ)
    Started: Mon Jul 20 17:15:20 2020 - 01:45 ago
    State  : Traced/Stopped, pid: 414
Another app is currently holding the yum lock; waiting for it to exit...
  The other application is: yum
    Memory :  55 M RSS (534 MB VSZ)
    Started: Mon Jul 20 17:15:20 2020 - 01:47 ago
    State  : Traced/Stopped, pid: 414
Another app is currently holding the yum lock; waiting for it to exit...
  The other application is: yum
    Memory :  55 M RSS (534 MB VSZ)
    Started: Mon Jul 20 17:15:20 2020 - 01:49 ago
    State  : Traced/Stopped, pid: 414
Another app is currently holding the yum lock; waiting for it to exit...
  The other application is: yum
    Memory :  55 M RSS (534 MB VSZ)
    Started: Mon Jul 20 17:15:20 2020 - 01:51 ago
    State  : Traced/Stopped, pid: 414
Another app is currently holding the yum lock; waiting for it to exit...
  The other application is: yum
    Memory :  55 M RSS (534 MB VSZ)
    Started: Mon Jul 20 17:15:20 2020 - 01:54 ago
    State  : Traced/Stopped, pid: 414

yum在安装时卡主,直接强制退出了,再次安装时,提示yum被锁,遇到这种情况,可以查看执行中进程,然后直接删除进程。

[root@iZ8vb7grbyvlb154qzo6nyZ ~]# ps aux|grep yum
root       414  1.8  5.7 547044 55840 pts/1    T    17:15   0:03 /usr/bin/python /usr/bin/yum install jenkins-2.138.4-1.1.noarch.rpm -y
root       517  0.2  2.2 349248 22116 pts/1    T    17:16   0:00 /usr/bin/python /usr/bin/yum install jenkins-2.204.1-1.1.noarch.rpm -y
root       612  0.0  0.1 112704   972 pts/1    R+   17:18   0:00 grep --color=auto yum
[root@iZ8vb7grbyvlb154qzo6nyZ ~]# kill -9 414
[root@iZ8vb7grbyvlb154qzo6nyZ ~]# kill -9 517
[root@iZ8vb7grbyvlb154qzo6nyZ ~]# ps aux|grep yum
root       646  0.0  0.1 112704   972 pts/1    R+   17:18   0:00 grep --color=auto yum

删除后,再重新安装即可。

[root@iZ8vb7grbyvlb154qzo6nyZ ~]# yum install jenkins-2.204.1-1.1.noarch.rpm -y
...
...
...
Running transaction
  Installing : jenkins-2.204.1-1.1.noarch                                                                                                    1/1 
  Verifying  : jenkins-2.204.1-1.1.noarch                                                                                                    1/1 

Installed:
  jenkins.noarch 0:2.204.1-1.1                                                                                                                   

Complete!

ok,成功安装。

  • 13
    点赞
  • 43
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 2
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

终码一生

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值