yum提示Another app is currently holding the yum lock; waiting for it to exit...
2017-11-19 11:39
453 查看
一般用yum安装环境或者插件很方便,今天遇到一个错误
# yum -y install gcc-C++
Loaded plugins: fastestmirror, refresh-packagekit, security
Existing lock /var/run/yum.pid: another copy is running as pid 25960.
Another app is currently holding the yum lock; waiting for it to exit...
大概意思就是yum处于锁定状态,查资料说出现这种情况一是系统正在自动升级二是yum进行正在运行
如果是正在升级等升级完就好了,如果错误日志里面出现了pid说明是正在占用,直接kill掉即可
kill -s 9 pid
如果不确定pid可以用命令进行查看
ps aux |grep yum
如果kill不管用就直接强制移除
rm -f /var/run/yum.pid
# yum -y install gcc-C++
Loaded plugins: fastestmirror, refresh-packagekit, security
Existing lock /var/run/yum.pid: another copy is running as pid 25960.
Another app is currently holding the yum lock; waiting for it to exit...
大概意思就是yum处于锁定状态,查资料说出现这种情况一是系统正在自动升级二是yum进行正在运行
如果是正在升级等升级完就好了,如果错误日志里面出现了pid说明是正在占用,直接kill掉即可
kill -s 9 pid
如果不确定pid可以用命令进行查看
ps aux |grep yum
如果kill不管用就直接强制移除
rm -f /var/run/yum.pid
相关文章推荐
- yum命令提示"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...
- yum提示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
- yum提示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...
- Linux yum提示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...
- yum提示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...
- yum提示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
- 解决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...
- yum提示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...解决方案
- yum提示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
- another app is currently holding the yum lock;waiting for it to exit...