天天看点

Another app is currently holding the yum lock; waiting for it to exit

     昨天用virtualbox虚拟了2台centos,发现默认没有安装vim,所以就准备安装vim,结果我输入如下命令时,出现了如题的异常:

Another app is currently holding the yum lock; waiting for it to exit

yum install vim-x11 vim-common vim-enhanced vim-minimal  

    结果提示异常:

Another app is currently holding the yum lock; waiting for it to exit

   意思是yum当前正被其他程序进程占用了,解决办法就是杀掉进程了,输入下面的命令即可:

Another app is currently holding the yum lock; waiting for it to exit

rm -f /var/run/yum.pid  

    然后再次输入vim安装命令即可,

Another app is currently holding the yum lock; waiting for it to exit

    你会看到,已经在自动下载vim依赖的其他rpm啦,耐心等待即可!中途会出现几个需要你确认的提示,如:

   is this ok [y/n] 

   输入y回车即可.

Another app is currently holding the yum lock; waiting for it to exit

    如果你最终看到complete提示语的时候,则表明你的vim已经安装成功了.最后你可以随便找个文件测试下vim是否可用来验证vim安装成功了,如图:

Another app is currently holding the yum lock; waiting for it to exit

转载:http://iamyida.iteye.com/blog/2253728

继续阅读