360SDN.COM

Existing lock /var/run/yum.pid: another copy is running as pid 解决办法

来源:  2019-04-12 16:24:31    评论:0点击:

yum只能支持一个例程运行,所以如果有一个例程已经在运行,其他的必须等待该进程退出释放lock。出现这种情况时,可以用以下命令来恢复:
1
rm -f /var/run/yum.pid

  

生命不止,奋斗不息


今天用yum安装软件时报错:

[root@lvs2 yum.repos.d]# yum -y install ipvsadm
Loaded plugins: rhnplugin, security
This system is not registered with RHN.
RHN support will be disabled.
Existing lock /var/run/yum.pid: another copy is running as pid 11986.
Another app is currently holding the yum lock; waiting for it to exit...
  The other application is: pirut
    Memory :  54 M RSS (103 MB VSZ)
    Started: Fri Jul  2 01:09:33 2010 - 18:52:40 ago
    State  : Sleeping, pid: 11986
 

解决办法如下:

1。rm -rf /var/run/yum.pid

2./etc/init.d/yum-updatesd stop

问题得到解决!


 

Problem:

 

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

 

 

How to fix ?

 

Solution:

# ps aux | grep -i yum

root       523  0.0  0.7  27128 14624 ?        SN   Feb09   0:00 /usr/bin/python -tt

# kill -9 523

# killall -9 yum

 

It works ^^


为您推荐

友情链接 |九搜汽车网 |手机ok生活信息网|ok生活信息网|ok微生活
 Powered by www.360SDN.COM   京ICP备11022651号-4 © 2012-2016 版权