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

yum提示Another app is currently holding the yum lock

发布时间:2020-12-15 17:04:34 所属栏目:安全 来源:网络整理
导读:yum提示Another app is currently holding the yum lock; waiting for it to exit... [root@tomcat~]#yumrepolistAnotherappiscurrentlyholdingtheyumlock;waitingforittoexit...Theotherapplicationis:PackageKitMemory:153MRSS(266MBVSZ)Started:ThuJul120

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



[root@tomcat~]#yumrepolist
Anotherappiscurrentlyholdingtheyumlock;waitingforittoexit...
Theotherapplicationis:PackageKit
Memory:153MRSS(266MBVSZ)
Started:ThuJul1200:03:052012-06:17ago
State:Sleeping,pid:14997
Anotherappiscurrentlyholdingtheyumlock;waitingforittoexit...
Theotherapplicationis:PackageKit
Memory:153MRSS(266MBVSZ)
Started:ThuJul1200:03:052012-06:19ago
State:Sleeping,pid:14997

可能是系统自动升级正在运行,yum在锁定状态中。
已经有一个yum进程在运行了,使用kill干掉它:

#kill-s914997
#psaux|grepyum
root67440.00.0103260900pts/1S+14:590:00grepyum
root149970.00.000?ZSep190:01[yumBackend.py]<defunct>1234

很遗憾,kill对付不了它,那怎么办呢?

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


解决方法:rm -rf /var/run/yum.pid 来强行解除锁定,然后你的yum就可以运行了

(编辑:李大同)

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

    推荐文章
      热点阅读