更新時(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
下面是黑馬程序員公開(kāi)的幾套視頻教程,可以跟著學(xué)習(xí)學(xué)習(xí),如果想深入學(xué)習(xí),轉(zhuǎn)到運(yùn)維行業(yè),建議報(bào)班學(xué)習(xí)黑馬程序員linux云計(jì)算+運(yùn)維開(kāi)發(fā)培訓(xùn)課程。
wget下載mysql數(shù)據(jù)庫(kù)時(shí)提示command not found怎么解決?
2020-07-07如何獲取服務(wù)器的CPU個(gè)數(shù)?
2020-07-07使用top命令,發(fā)現(xiàn)內(nèi)存可用量很小,接下來(lái)怎么辦?
2020-07-07rpm卸載依賴(lài),F(xiàn)ailed dependencies
2020-07-07計(jì)劃任務(wù)的時(shí)間總是寫(xiě)不好怎么辦?
2020-07-07CentOS6與CentOS7運(yùn)行模式有什么區(qū)別?
2020-07-07