CentOS-7中解决: Another app is currently holding the yum lock

本文记录了在CentOS 7中手动终止yum install ntp命令导致的yum锁定问题,并提供了清除/var/run/yum.pid文件以解锁yum的解决方案。

备忘录:为查询和总结记录。
记录:NO.227
本例环境:
        操作系统:CentOS-7-x86_64-DVD-1908
        JDK版本:jdk-8u251-linux-x64
        远程连接工具:SecureCRT 8.0
场景:
        在执行命令yum install ntp,手动终止了正在执行的命令造成yum被锁定。
报错信息:
        Another app is currently holding the yum lock; waiting for it to exit...
分析:
        从打印日志看:
        Existing lock /var/run/yum.pid 看出被锁定了。
        
解决:
        rm -f /var/run/yum.pid
        执行命令后,即可重新使用yum安装
以上,感谢。

内存:9.2 M RSS (452 MB VSZ) 已启动: Sat Jun 21 16:32:10 2025 - 03:20之前 状态 :睡眠中,进程ID:2580 Another app is currently holding the yum lock; waiting for it to exit... 另一个应用程序是:PackageKit 内存:9.2 M RSS (452 MB VSZ) 已启动: Sat Jun 21 16:32:10 2025 - 03:22之前 状态 :睡眠中,进程ID:2580 Another app is currently holding the yum lock; waiting for it to exit... 另一个应用程序是:PackageKit 内存:9.2 M RSS (452 MB VSZ) 已启动: Sat Jun 21 16:32:10 2025 - 03:24之前 状态 :睡眠中,进程ID:2580 Another app is currently holding the yum lock; waiting for it to exit... 另一个应用程序是:PackageKit 内存:9.2 M RSS (452 MB VSZ) 已启动: Sat Jun 21 16:32:10 2025 - 03:26之前 状态 :睡眠中,进程ID:2580 Another app is currently holding the yum lock; waiting for it to exit... 另一个应用程序是:PackageKit 内存:9.2 M RSS (452 MB VSZ) 已启动: Sat Jun 21 16:32:10 2025 - 03:28之前 状态 :睡眠中,进程ID:2580 Another app is currently holding the yum lock; waiting for it to exit... 另一个应用程序是:PackageKit 内存:9.2 M RSS (452 MB VSZ) 已启动: Sat Jun 21 16:32:10 2025 - 03:30之前 状态 :睡眠中,进程ID:2580 Another app is currently holding the yum lock; waiting for it to exit... 另一个应用程序是:PackageKit 内存:9.6 M RSS (453 MB VSZ) 已启动: Sat Jun 21 16:32:10 2025 - 03:32之前 状态 :睡眠中,进程ID:2580
最新发布
06-22
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值