yum進程被占用


 

使用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

重啟服務器

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM