解决方法:
rm -f /var/run/yum.pid再重新运行yum
原因:可能是系统自动升级正在运行,yum在锁定状态中,要等待那个进程结束退出:
  另一个应用程序是:PackageKit内存: 29 M RSS (445 MB VSZ)已启动: Wed Nov 15 13:55:28 2023 - 00:24之前状态  :睡眠中,进程ID:6830
Another app is currently holding the yum lock; waiting for it to exit...
可以看一下是否有yum进程:
ps aux|grep yum
localhost lms]# ps aux|grep yum
root      66282  0.0  0.0 112824   988 pts/0    S+   14:26   0:00 grep --color=auto yum