关于我们

质量为本、客户为根、勇于拼搏、务实创新

< 返回新闻公共列表

Linux执行yum安装提示Anothe holding the yum lock

发布时间:2024/4/22 13:39:18
香港云服务器

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