更新时间: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鸿蒙原生智能正式版课程,培养全端跨平台鸿蒙工程师
2026-03-10AI鸿蒙原生智能正式版课程,培养全端跨平台鸿蒙工程师
2026-03-10AI鸿蒙原生智能正式版课程,培养全端跨平台鸿蒙工程师
2026-03-10毕业16个工作日,平均薪资13180元,就业率100%,广州黑马AI智能应用开发(Java)学科20250529班
2026-03-06毕业32个工作日,平均薪资11147元,就业率95%,广州黑马AI智能应用开发(Java)学科20250326班
2026-03-05黑马程序员2025全国就业数据发布:全学科平均就业率92.07%,AI开发类就业平均薪资达11869.67元。
2026-03-05