加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > 安全 > 正文

yum提示Another app is currently holding the yum lock; waitin

发布时间:2020-12-15 20:53:37 所属栏目:安全 来源:网络整理
导读:今天没事搞了两个虚机玩玩,但是安装软件的时候出现错误,如下: yum提示Another app is currently holding the yum lock; waiting for it to exit... # yum -y install vixie-cronLoaded plugins: fastestmirror,refresh-packagekit,securityExisting lock

今天没事搞了两个虚机玩玩,但是安装软件的时候出现错误,如下:

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

# yum -y install vixie-cron
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进程在运行了,目前使用kill杀了进程:

# kill -s 9 *****
# ps aux|grep yum
root 16744 0.0 0.0 1032 900 pts/1 S+ 09:19? ?0:00 grep yum
root 55960 0.0 0.0 0 0 ? Z Sep19 0:01 [yumBackend.py] <defunct>
kill不了,那怎么办呢?

可以通过强制关掉yum进程:

#rm -f /var/run/yum.pid

然后就可以使用yum了。

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读