Another app is currently holding the yum lock; waiting for it to exit

文章讲述了另一个应用程序持有Yum的进程锁,导致yum服务暂停。提供了两种解决方案:一是强制结束进程(kill命令),二是删除yum.pid文件使其自动生成。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

Another app is currently holding the yum lock; waiting for it to exit…

报错详情:
[root@localhost debug]# sudo yum makecache
Loaded plugins: fastestmirror
Existing lock /var/run/yum.pid: another copy is running as pid 87965.
Another app is currently holding the yum lock; waiting for it to exit...
  The other application is: yum
    Memory :  26 M RSS (1.4 GB VSZ)
    Started: Tue Oct 24 10:42:45 2023 - 11:54 ago
    State  : Traced/Stopped, pid: 87965
问题分析:

Another app is currently holding the yum lock. 意为另外随侵一个应用正英篇泛在锁住进程锁。waiting for it to exit… 意为该应用等待解锁。此外,如图可以得知,yum的pid号为87965。

解决方案1:

强制关闭进程,出现该进程无法被终止的情况,进而采用kill命令

[root@localhost debug]# kill -9 87965

执行kill之后yum会自动重新运行,然后yum就恢复正常了

解决方案2:

删除pid文件

[root@localhost debug]# rm -f /var/run/yum.pid

yum.pid文件会重新自动生成,然后yum就恢复正常了

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值