今天使用软件包更新工具的时候连进度都看不到,我就强制退出了它
然后运行
#yumex
不行,竟然也是出错的信息,NND,我的yum出问题了?
再运行:
#yum update
出现了:
Loading "fastestmirror" plugin
Existing lock /var/run/yum.pid: another copy is running as pid 5573.
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...
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...
NND,说我正在使用yum。
这时候就只能强制杀掉以前的yum进程了,这个是网上说的方法
#rm -f /var/run/yum.pid
可是我这样试过了,还是不行啊。
突然在配置yum源里面想起来了一个,就是配置完了yum源后要重启yum源啊
于是我:
# /sbin/service yum-updatesd restart
停止 yum-updatesd:[确定]
启动 yum-updatesd:[确定]
结果,好使了。
因此得出结论:先杀了它,再重启yum源是好使滴。