且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Linux yum提示Another app is currently holding the yum lock; waiting for it to exit...

更新时间:2022-08-17 22:48:13

版权声明:本文为 testcs_dn(微wx笑) 原创文章,非商用***转载-保持署名-注明出处,谢谢。 https://blog.csdn.net/testcs_dn/article/details/48711805

使用yum安装计划任务功能,结果提示:

# yum -y install vixie-cronLoaded plugins: fastestmirror, refresh-packagekit, securityExisting lock /var/run/yum.pid: anothercopyisrunningaspid25960.Another appiscurrently holdingtheyum lock; waitingforittoexit...

可是系统自动升级正在运行,yum在锁定状态中。 

已经有一个yum进程在运行了,使用kill干掉它:

# kill -s 9 25960# ps aux|grep yumroot67440.00.0103260900pts/1S+14:590:00grep yumroot259600.00.000? Z Sep190:01[yumBackend.py]

很遗憾,kill对付不了它,那怎么办呢?

可以通过强制关掉yum进程:

#rm-f/var/run/yum.pid

然后就可以使用yum了。