原址:http://blog.sina.com.cn/s/blog_6122363d0100vgxd.html
这两天装了一个center os 在虚拟机里玩,只是听说网易的yum源速度很快想试试这一是不要紧出问题了,不管是敲yum clean all 还是 yum list全是蹦出:
[root@localhost ~]# yum clean all
Repository base is listed more than once in the configuration
Repository updates is listed more than once in the configuration
Repository extras is listed more than once in the configuration
Repository centosplus is listed more than once in the configuration
Repository contrib is listed more than once in the configuration
Existing lock /var/run/yum.pid: another copy is running as pid 2862.
Another app is currently holding the yum lock; waiting for it to exit...
The other application is: yum-updatesd-he
Memory : 29 M RSS ( 42 MB VSZ)
Started: Tue Jul 5 03:33:09 2011 - 53:27 ago
State : Sleeping, pid: 2862
Another app is currently holding the yum lock; waiting for it to exit...
The other application is: yum-updatesd-he
Memory : 29 M RSS ( 42 MB VSZ)
Started: Tue Jul 5 03:33:09 2011 - 53:29 ago
State : Sleeping, pid: 2862
Another app is currently holding the yum lock; waiting for it to exit...
The other application is: yum-updatesd-he
Memory : 29 M RSS ( 42 MB VSZ)
Started: Tue Jul 5 03:33:09 2011 - 53:31 ago
[root@localhost ~]# yum list
Repository base is listed more than once in the configuration
Repository updates is listed more than once in the configuration
Repository extras is listed more than once in the configuration
Repository centosplus is listed more than once in the configuration
Repository contrib is listed more than once in the configuration
Existing lock /var/run/yum.pid: another copy is running as pid 2862.
Another app is currently holding the yum lock; waiting for it to exit...
The other application is: yum-updatesd-he
Memory : 29 M RSS ( 42 MB VSZ)
Started: Tue Jul 5 03:33:09 2011 - 53:40 ago
State : Sleeping, pid: 2862
Another app is currently holding the yum lock; waiting for it to exit...
The other application is: yum-updatesd-he
Memory : 29 M RSS ( 42 MB VSZ)
Started: Tue Jul 5 03:33:09 2011 - 53:42 ago
State : Sleeping, pid: 2862
后来得知在yum update的时候我给强行终止了才造成这情况
因为在后台还有一个yum-updatesd-he的进程在运行解决办法
#rm -f /var/run/yum.pid
# /sbin/service yum-updatesd restart