使用yum安裝軟件的時候出現,/var/run/yum.pid 已被鎖定,PID 為 6503 的另一個程序正在運行的問題
[root@localhost mysql]# yum install gcc gcc-c++ cmake ncurses-devel bison
已加載插件:fastestmirror, langpacks
/var/run/yum.pid 已被鎖定,PID 為 6503 的另一個程序正在運行。
Another app is currently holding the yum lock; waiting for itto exit...
另一個應用程序是:PackageKit
內存: 31 M RSS (361 MB VSZ)
已啟動: Sat Jun 22 14:39:13 2019 - 00:04之前
狀態 :運行中,進程ID:6503
Another app is currently holding the yum lock; waiting for itto exit...
另一個應用程序是:PackageKit
內存: 46 M RSS (375 MB VSZ)
已啟動: Sat Jun 22 14:39:13 2019 - 00:06之前
狀態 :運行中,進程ID:6503
解決辦法:
vim /etc/yum/pluginconf.d/fastestmirror.conf
enabled=1 改為enabled=0
重啟服務器