学堂 学堂 学堂公众号手机端

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

lewis 8年前 (2017-05-10) 阅读数 21 #云服务器

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


版权声明

本文仅代表作者观点,不代表博信信息网立场。

热门