咨询热线:4006-75-4006
售前:9:00-23:30 备案:9:00-18:00 技术:7*24h
Linux执行yum安装提示Another app is currently holding the yum lock; waiting for it to exit.
蓝队云小课堂:
问题描述:
Linux系统中使用到yum命令报错:
Another app is currently holding the yum lock; waiting for it to exit...
The other application is: yum
Memory : 28 M RSS (772 MB VSZ)
Started: Sat Apr 13 14:11:00 2024 - 02:18 ago
State : Sleeping, pid: 29635
解决办法:
输入:
rm -f /var/run/yum.pid
然后重新运行刚才的yum命令即可
原因:
可能是系统自动升级正在运行,yum在锁定状态中,要等待那个进程结束退出:
看报错的那一段话:
Another app is currently holding the yum lock; waiting for it to exit...
你可以看一下是否有yum进程
ps aux|grep yum
更多小知识,可联系蓝队云一起探讨。