更新时间: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云计算+运维开发培训课程。
全国13城校区全覆盖|黑马程序员AI大模型开发(Python),就近学习、全国就业
2026-04-08黑马程序员AI大模型开发(Python)|大厂共建+实战赋能,学完即具备企业项目能力
2026-04-08黑马程序员AI大模型开发(Python)|5阶段体系化教学,从入门到精通全覆盖
2026-04-08黑马程序员AI大模型开发(Python)|培养企业应用型人才,适配行业核心需求
2026-04-08黑马程序员AI智能应用开发|上市品牌背书,大厂联合研发,打造AI复合型人才
2026-04-08全国13城校区全覆盖|黑马程序员AI智能应用开发,就近学、就近就业
2026-04-08