运行yum系统Existing lock /var/run/yum.pid

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了运行yum系统Existing lock /var/run/yum.pid相关的知识,希望对你有一定的参考价值。

运行yum,系统提示Existing lock /var/run/yum.pid: another copy is running as pid 3046

问题描述:登录系统后,执行yum install vsftpd,提示Existing lock /var/run/yum.pid: another copy is running as pid 5048.有时等5~10分钟yum可以正常使用。

问题分析:主要原因就是yum在自动更新,所以再运行yum就会报这个错。

问题解决:只要关掉正在执行的yum更新就可以了就可以了,停止正在运行的yum进程,或者禁用开机自动启动yum进程。

操作步骤:

停止yum进程

[[email protected] ~]# rm -f /var/run/yum.pid

为什么会有一个yum进程在执行呢?

原来是yum自动更新机制自动激活了yum进程,用下面的命令停止自动更新:

[[email protected] ~]# /etc/init.d/yum-updatesd stop

停止 yum-updatesd: [确定]

如果我们不需要自动更新服务,可以直接删除它。 
yum remove yum-updatesd 
不过删除该服务之后,以后的更新要用下面的命令手工来完成了。 
yum update


以上是关于运行yum系统Existing lock /var/run/yum.pid的主要内容,如果未能解决你的问题,请参考以下文章

yum被lock Existing lock /var/run/yum.pid: another copy is running as pid 1580. Another app is current

yum提示another app is currently holding the yum lock;waiting for it to exit

yum 报错:Another app is currently holding the yum lock; waiting for it to exit

yum 报错:Another app is currently holding the yum lock; waiting for it to exit

yum 报错:Another app is currently holding the yum lock; waiting for it to exit

yum安装提示Another app is currently holding the yum lock; waiting for it to exit...