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

yum提示Another app is currently holding the yum lock

发布时间:2020-12-15 19:09:01 所属栏目:安全 来源:网络整理
导读:使用yum安装计划任务功能,结果提示: #yum-yinstallvixie-cronLoadedplugins:fastestmirror,refresh-packagekit,securityExistinglock/var/run/yum.pid:anothercopyisrunningaspid25960.Anotherappiscurrentlyholdingtheyumlock;waitingforittoexit... 可能

使用yum安装计划任务功能,结果提示:

#yum-yinstallvixie-cron
Loadedplugins:fastestmirror,refresh-packagekit,security
Existinglock/var/run/yum.pid:anothercopyisrunningaspid25960.
Anotherappiscurrentlyholdingtheyumlock;waitingforittoexit...

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

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

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

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

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

然后就可以使用yum了。

(编辑:李大同)

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

    推荐文章
      热点阅读