更新時間:2020-07-07 來源:黑馬程序員 瀏覽量:
問題:Existing lock /var/run/yum.pid: another copy is running
錯誤重現(xiàn):
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
......
出現(xiàn)以上問題的主要原因在于:另外一個應(yīng)用正在鎖住進程鎖。waiting for it to exit...
意為該應(yīng)用等待解鎖。此外,由上圖可知,yum的pid號為8706。
解決方案:
[root@itheima ~]# rm -f /var/run/yum.pid
下面是黑馬程序員公開的幾套視頻教程,可以跟著學(xué)習(xí)學(xué)習(xí),如果想深入學(xué)習(xí),轉(zhuǎn)到運維行業(yè),建議報班學(xué)習(xí)黑馬程序員linux云計算+運維開發(fā)培訓(xùn)課程。