问题:
[root@shareserver ~]# yum repolist 或者 yum clean all 都会提示如下:
Loaded plugins: langpacks
Existing lock /var/run/yum.pid: another copy is running as pid 20323.
Another app is currently holding the yum lock; waiting for it to exit...
The other application is: PackageKit
Memory : 34 M RSS (362 MB VSZ)
Started: Wed Nov 28 07:29:03 2018 - 25:28 ago
State : Sleeping, pid: 20323
Another app is currently holding the yum lock; waiting for it to exit...
The other application is: PackageKit
Memory : 34 M RSS (362 MB VSZ)
Started: Wed Nov 28 07:29:03 2018 - 25:30 ago
State : Sleeping, pid: 20323
解决方法:系统提示了一个进程正在休眠,pid为20323,那么可以使用 ps -aux | grep 20323来查看是什么进程
如果此进程并非重要进程,我们不妨使用kill命令杀死此进程 kill -s 9 20323,这样就可以正常使用yum命令了