centos 中使用yum報錯的問題
阿新 • • 發佈:2018-12-26
用yum安裝軟體然後報這個錯誤
解決方法:
刪除yum.pid檔案,並重啟yum服務後
rm -rf /var/run/yum.pid
還有一個錯誤,後邊是什麼來往了,是因為網速太慢或者網絡卡設定的問題可以嘗試修改網絡卡來解決
Loaded plugins: fastestmirror, langpacks Existing lock /var/run/yum.pid: another copy is running as pid 11497. Another app is currently holding the yum lock; waiting for it to exit... The other application is: PackageKit Memory : 49 M RSS (924 MB VSZ) Started: Thu Mar 16 23:24:24 2017 - 01:46 ago State : Sleeping, pid: 11497 Another app is currently holding the yum lock; waiting for it to exit... The other application is: PackageKit Memory : 49 M RSS (924 MB VSZ) Started: Thu Mar 16 23:24:24 2017 - 01:48 ago State : Sleeping, pid: 11497
解決方法:
刪除yum.pid檔案,並重啟yum服務後
rm -rf /var/run/yum.pid
/sbin/service yum-updatesd restart
還有一個錯誤,後邊是什麼來往了,是因為網速太慢或者網絡卡設定的問題可以嘗試修改網絡卡來解決
Loaded plugins: fastestmirror, langpacks