首页常见问题正文

Existing lock /var/run/yum.pid: another copy is running

更新时间: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云计算+运维开发培训课程



分享到:
在线咨询 我要报名
和我们在线交谈!