更新时间:2020-07-07 来源:黑马程序员 浏览量:
问题:Existing lock /var/run/yum.pid: another copy is running
错误重现:
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
......
出现以上问题的主要原因在于:另外一个应用正在锁住进程锁。waiting for it to exit...
意为该应用等待解锁。此外,由上图可知,yum的pid号为8706。
解决方案:
[root@itheima ~]# rm -f /var/run/yum.pid
下面是黑马程序员公开的几套视频教程,可以跟着学习学习,如果想深入学习,转到运维行业,建议报班学习黑马程序员linux云计算+运维开发培训课程。
【AI设计】北京143期毕业仅36天,全员拿下高薪offer!黑马AI设计连续6期100%高薪就业
2025-09-19【跨境电商运营】深圳跨境电商运营毕业22个工作日,就业率91%+,最高薪资达13500元
2025-09-19【AI运维】郑州运维1期就业班,毕业14个工作日,班级93%同学已拿到Offer, 一线均薪资 1W+
2025-09-19【AI鸿蒙开发】上海校区AI鸿蒙开发4期5期,距离毕业21天,就业率91%,平均薪资14046元
2025-09-19【AI大模型开发-Python】毕业33个工作日,就业率已达到94.55%,班均薪资20763元
2025-09-19【AI智能应用开发-Java】毕业5个工作日就业率98.18%,最高薪资 17.5k*13薪,全班平均薪资9244元
2025-09-19