1.1 Another app is currently holding the yum lock; waiting for it to exit...
有时用yum安装docker或者升级时,会出现以下情况:
1.1.1 现象
[root@dockerserver2 ~]# yum install docker
Loaded plugins: fastestmirror, langpacks
Repodata is over 2 weeks old. Install yum-cron? Or run: yum makecache fast
Existing lock /var/run/yum.pid: another copy is running as pid 4279.
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...
1.1.2 处理办法
可以通过强制关掉yum进程来解决处理
rm -f /var/run/yum.pid
1.1.3 具体过程
删除后,安装正常操作
Exiting on user cancel.
[root@dockerserver2 ~]# rm -f /var/run/yum.pid
Loaded plugins: fastestmirror, langpacks
Repodata is over 2 weeks old. Install yum-cron? Or run: yum makecache fast
base
extras
updates
(1/2): extras/7/x86_64/primary_db
(2/2): updates/7/x86_64/primary_db
Loading mirror speeds from cached hostfile