今天在linux中使用yum时出现如下错误:
Loaded plugins: fastestmirror, security
Existing lock /var/run/yum.pid: another copy is running as pid 4733.
Another app is currently holding the yum lock; waiting for it to exit…
The other application is: yum-updatesd-he
Memory : 22 M RSS (249 MB VSZ)
Started: Fri Jul 6 12:18:29 2012 – 53:47 ago
State : Sleeping, pid: 4733
关机重启后也没有解决,后尝试删除yum.pid文件,并重启yum服务后OK,具体命令如下:
rm -rf /var/run/yum.pid
/sbin/service yum-updatesd restart
推荐阅读:
RedHat Linux 本地yum源的配置 http://www.linuxidc.com/Linux/2013-08/88217.htm
RedHat 6.2 Linux修改yum源免费使用CentOS源 http://www.linuxidc.com/Linux/2013-07/87383.htm
配置EPEL YUM源 http://www.linuxidc.com/Linux/2012-10/71850.htm
Redhat 本地yum源配置 http://www.linuxidc.com/Linux/2012-11/75127.htm
yum的配置文件说明 http://www.linuxidc.com/Linux/2013-04/83298.htm
RedHat 6.1下安装yum(图文) http://www.linuxidc.com/Linux/2013-06/86535.htm
YUM 安装及清理 http://www.linuxidc.com/Linux/2013-07/87163.htm