且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

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

更新时间:2021-10-04 04:59:25

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

Shell代码  Another app is currently holding the yum lock; waiting for it to exit
  1. yum install vim-X11 vim-common vim-enhanced vim-minimal  

    结果提示异常:
Another app is currently holding the yum lock; waiting for it to exit
   意思是yum当前正被其他程序进程占用了,解决办法就是杀掉进程了,输入下面的命令即可:

Shell代码  Another app is currently holding the yum lock; waiting for it to exit
  1. 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