1. 程式人生 > >/var/run/yum.pid 已被鎖定 解決辦法

/var/run/yum.pid 已被鎖定 解決辦法

[[email protected] 桌面]# yum install glibc.i686
已載入外掛:fastestmirror, langpacks
/var/run/yum.pid 已被鎖定,PID 為 49901 的另一個程式正在執行。
Another app is currently holding the yum lock; waiting for it to exit...
  另一個應用程式是:PackageKit
    記憶體:103 M RSS (432 MB VSZ)
    已啟動: Mon Jan 11 10:43:58 2016 - 02:36之前
    狀態  :睡眠中,程序ID:49901
Another app is currently holding the yum lock; waiting for it to exit...
  另一個應用程式是:PackageKit
    記憶體:103 M RSS (432 MB VSZ)
    已啟動: Mon Jan 11 10:43:58 2016 - 02:38之前
    狀態  :睡眠中,程序ID:49901
Another app is currently holding the yum lock; waiting for it to exit...
  另一個應用程式是:PackageKit
    記憶體:103 M RSS (432 MB VSZ)
    已啟動: Mon Jan 11 10:43:58 2016 - 02:40之前
    狀態  :睡眠中,程序ID:49901
Another app is currently holding the yum lock; waiting for it to exit...
  另一個應用程式是:PackageKit
    記憶體:103 M RSS (432 MB VSZ)
    已啟動: Mon Jan 11 10:43:58 2016 - 02:42之前
    狀態  :睡眠中,程序ID:49901
Another app is currently holding the yum lock; waiting for it to exit...
  另一個應用程式是:PackageKit
    記憶體:103 M RSS (432 MB VSZ)
    已啟動: Mon Jan 11 10:43:58 2016 - 02:44之前
    狀態  :睡眠中,程序ID:49901
^C


Exiting on user cancel.
[
[email protected]
桌面]# rm -f /var/run/yum.pid 
[[email protected] 桌面]# yum install glibc.i686

已載入外掛:fastestmirror, langpacks
Loading mirror speeds from cached hostfile
 * base: mirrors.163.com
 * extras: mirrors.163.com
 * updates: mirrors.163.com

正在解決依賴關係

網上的解決辦法:直接在終端執行 rm -f /var/run/yum.pid 將該檔案刪除,然後再次執行yum