linux执行yum任何命令 报如下错误
Existing lock /var/run/yum.pid: another copy is running as pid 11591.
Another app is currently holding the yum lock; waiting for it to exit...
The other application is: PackageKit
Memory : 177 M RSS (1.0 GB VSZ)
Started: Wed Apr 21 18:29:06 2021 - 03:10 ago
State : Sleeping, pid: 11591
问题原因:
已经有一个yum进程在运行了,使用kill干掉它
执行命令:
ps aux|grep yum
查看到对应的端口
使用 kill -9 11591 干掉该线程
重新执行yum操作,正常