
CentOS执行yum命令提示另一个应用程序占用
/var/run/yum.pid 已被锁定,PID 为 1610 的另一个程序正在运行。
另外一个程序锁定了 yum;等待它退出……
The other application is: yum
Memory : 23 M RSS (700 MB VSZ)
Started: Wed Mar 18 12:24:18 2015 - 00:13 ago
State : Uninterruptible, pid: 1610
另外一个程序锁定了 yum;等待它退出……
The other application is: yum
Memory : 23 M RSS (701 MB VSZ)
Started: Wed Mar 18 12:24:18 2015 - 00:15 ago
State : Running, pid: 1610
另外一个程序锁定了 yum;等待它退出……
The other application is: yum
Memory : 23 M RSS (701 MB VSZ)
Started: Wed Mar 18 12:24:18 2015 - 00:17 ago
State : Sleeping, pid: 1610
主要原因就是yum在自动更新,只要关掉他就可以了
解决方案:
直接输入 rm -f /var/run/yum.pid
或者: /etc/init.d/yum-updatesd stop
也可以等更新完了再进行安装yum.