首页 > 代码库 > Centos Another app is currently holding the yum lock
Centos Another app is currently holding the yum lock
yum命令用ctrl+z命令中断后,再运行yum时,出现:
Existing lock /var/run/yum.pid: another copy is running as pid 3046.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...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...
解决方案:
rm -f /var/run/yum.pid/sbin/service yum-updatesd restartStopping yum-updatesd: [ OK ]Starting yum-updatesd: [ OK ]
yum-updatesd上系统自带的一个提供系统更新的服务,安装文件也叫做yum-updatesd,这个服务默认是自动启动的(init 5),因为系统只允许一个更新进程在运行,所以他运行的时候会自动给yum加锁,这就导致了开机后不能手动进行yum了。
Centos Another app is currently holding the yum lock
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。