使用yum安装计划任务功能 结果提示:Another app is currently

使用yum安装计划任务功能,结果提示:Another app is currently ...........
[root@hdss7-200 /opt/harbor]# yum install docker-compose -y
Another app is currently holding the yum lock; waiting for it to exit...
The other application is: yum
Memory : 23 M RSS (415 MB VSZ)
Started: Sun Apr 12 20:24:59 2020 - 03:48 ago
State : Traced/Stopped, pid: 1781

可能是系统自动升级正在运行,yum在锁定状态中。
已经有一个yum进程在运行了,使用kill干掉它:

[root@hdss7-200 /opt/harbor]# kill -s 9 1781
[root@hdss7-200 /opt/harbor]# ps aux|grep yum
root 3620 0.0 0.0 112660 972 pts/1 S+ 20:31 0:00 grep --color=auto yum
如果,kill对付不了它,那怎么办呢?

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

rm -f /var/run/yum.pid

然后就可以使用yum了。

报错.png
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容