我用yum安装时为什么出现下面的问题:
[root@localhost ~]# yum install yum-fastestmirror yum-presto
Loaded plugins: refresh-packagekit
Existing lock /var/run/yum.pid: another copy is running as pid 3637.
Another app is currently holding the yum lock; waiting for it to exit...
Another app is currently holding the yum lock; waiting for it to exit...
Another app is currently holding the yum lock; waiting for it to exit...
Another app is currently holding the yum lock; waiting for it to exit...
Another app is currently holding the yum lock; waiting for it to exit...
Another app is currently holding the yum lock; waiting for it to exit...
我以为运行一个yum,但是我重启以后,还是有上面的问题 请教一下………………
微宝贝 于 2008-10-25 21:27:31发表:
默认的开机yum会自动更新系统,所以你要是在执行yum的话就会告诉你
Another app is currently holding the yum lock; waiting for it to exit...
遇到这种情况首先执行下面的命令
ps -A|grep yum
这个命令的意思就是列出当前的进程并筛选出包含yum字段的进程
这时你就会看见yum进程的PID
然后执行
kill -9 PID(PID用上一步看到的PID数字替换,例如你的问题中的yum的PID就是3637(another copy is running as pid 3637))
然后你就可以执行你的yum命令
或者你不喜欢命令的话,可以打开系统监视器,然后找到包含yum的所有的进程(一般就是yum或者yum-updates)然后杀死,效果和上面一样,但是这个方法需要你的图形界面是以root登陆的,要是不是以root登陆的则需要你注销/切换用户到root然后再杀死包含yum的进程。上面的方法只需打开终端然后su到root权限就可以了
[ 本帖最后由 微宝贝 于 2008-10-25 21:35 编辑 ]
wmfos 于 2008-10-25 21:03:00发表:
更新完了,应该就可以了
wmfos 于 2008-10-25 21:02:15发表:
是不是系统在更新啊,一般会这样