yum源提示出现Another app is currently holding the yum lock; waiting for it to exit…

搬瓦工精品GIA

前几天更新了一次我的yum源文件,更新一半我有点事就关掉了,结果事情弄完回来以后就出现了这个鬼东西!

Another app is currently holding the yum lock; waiting for it to exit…( 另一个应用程序目前持有yum锁;等待它退出…)
The other application is: yum
Memory : 21 M RSS (313 MB VSZ)
Started: Sun May 19 15:10:43 2019 – 07:14 ago
State : Traced/Stopped, pid: 1229

咱英语也不好,碰见就只能去翻译翻译,不过看起来是因为我中断更新导致yum被锁定了进程,得把那个进程给杀掉才行。

1.使用kill命令杀掉

ps aux | grep yum(查询有关yum的进程,找到那个更新进程)
kill -s 9 pid (上一步找到pid后直接杀掉)

2.有可能杀不掉

可以通过强制关掉yum的进程
rm -f /var/run/yum.pid

然后你再试试你的yum源就可以使用了!
注:以后更新yum的时候尽量别中断哈,要不就找个最新的yum源文件。

转载请注明阿虎爱分享http://ahushare.com
阿虎爱分享 » yum源提示出现Another app is currently holding the yum lock; waiting for it to exit…

发表评论

阿虎爱分享YouTube频道

立即查看 了解详情