使用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

你可能感兴趣的:(使用yum安装计划任务功能 结果提示:Another app is currently)