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