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

方法一:

遇到这种问题,可能是因为启动了多个进程:

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

杀死了这些进程:

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

然后重启yum list:

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

成功:

注意:这是在联网情况下。

方法二:进入 /etc/yum.repos.d

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

进入CentOS-Base.repo

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

注释掉所有的mirrorlist。修改baseurl为自己yum源挂载目录,不会挂载的请看:

https://blog.csdn.net/fengxianghui01/article/details/98884408

我的为:baseurl  = file:///mnt/cdrom

然后,yum list 

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

好了,成功!!!

相关文章: