centos7下使用yum命令时报错:
Existing lock /var/run/yum.pid: another copy is running as pid 8706.
Another app is currently holding the yum lock; waiting for it to exit...
The other application is: PackageKit
Memory : 104 M RSS (521 MB VSZ)
Started: Sat Mar 23 15:04:42 2019 - 00:59 ago
State : Sleeping, pid: 8706
Another app is currently holding the yum lock; waiting for it to exit...
The other application is: PackageKit
Memory : 104 M RSS (521 MB VSZ)
Started: Sat Mar 23 15:04:42 2019 - 01:01 ago
State : Sleeping, pid: 8706
Another app is currently holding the yum lock; waiting for it to exit...
The other application is: PackageKit
Memory : 104 M RSS (521 MB VSZ)
Started: Sat Mar 23 15:04:42 2019 - 01:03 ago
State : Sleeping, pid: 8706
解决办法:
rm -f /var/run/yum.pid