本文主要是介绍Linux中安装软件,yum提示Another app is currently holding the yum lock; waiting for it to exit...,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
使用yum安装yum install ansible,结果提示:
Loaded plugins: fastestmirror, langpacks
Existing lock /var/run/yum.pid: another copy is running as pid 23184.
Another app is currently holding the yum lock; waiting for it to exit...The other application is: PackageKitMemory : 327 M RSS (1.2 GB VSZ)Started: Mon Jul 5 20:45:57 2021 - 06:04 agoState : Sleeping, pid: 23184
解决办法:
查了一下,可能之前在使用yum下载安装软件,没有结束掉;也可能是系统自动升级正在运行,yum在锁定状态中。
1、已经有一个yum进程在运行了,kill–杀死进程
ps aux|grep yum
kiss -s 9 23184
2、强制关掉yum进程
rm -f /var/run/yum.pid
这篇关于Linux中安装软件,yum提示Another app is currently holding the yum lock; waiting for it to exit...的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!