使用yum grouplis列举系统中以组安装的包,结果提示:
# yum grouplist
Loaded plugins: fastestmirror, refresh-packagekit, security
Existing lock /var/run/yum.pid: another copy is running as pid .
Another app is currently holding the yum lock; waiting for it to exit...
应该是网上说可能系统正在自动升级,反正yum在锁定状态中,已经有一个yum进程在运行了,可以使用kill杀掉它:
# kill -s
# ps aux|grep yum
root 0.0 0.0 pts/ S+ : : grep yum
root 0.0 0.0 ? Z Sep19 :
额,kill对付不了它,那怎么办呢?
可以通过强制关掉yum进程:
#rm -f /var/run/yum.pid
然后应该就正常了,可以使用yum了。