今天用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

问题得到解决!