帮助中心 >  技术知识库 >  云服务器 >  服务器教程 >  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.

2024-04-21 09:59:36 190

Linux执行yum安装提示Another app is currently holding the yum lockwaiting 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

image.png

更多小知识,可联系蓝队云一起探讨。


提交成功!非常感谢您的反馈,我们会继续努力做到更好!

这条文档是否有帮助解决问题?

非常抱歉未能帮助到您。为了给您提供更好的服务,我们很需要您进一步的反馈信息:

在文档使用中是否遇到以下问题: