[root@localhost ~]# yum clean all
Loaded plugins: fastestmirror, langpacks
Existing lock /var/run/yum.pid: another copy is running as pid 3629.
Another app is currently holding the yum lock; waiting for it to exit…
The other application is: PackageKit
Memory : 220 M RSS (1.1 GB VSZ)
Started: Mon Jan 18 15:57:42 2021 - 03:44 ago
State : Sleeping, pid: 3629
^C
出现这种情况有以下三种解决方案:
方案一:
[root@localhost ~]# rm -rf /var/run/yum.pid
方案二:
[root@localhost ~]# kill `cat /var/run/yum.pid`
方案三:
[root@localhost ~]# kill $(cat /var/run/yum.pid)