Linux中使用Yum提示被占用

逆风 系统维护评论122字数 389阅读模式

    一般在新安装系统的服务器中,我们使用Yum安装库,有时会提示

Another app is currently holding the yum lock; waiting for it to exit...
  The other application is: yum
    Memory :  23 M RSS (414 MB VSZ)
    Started: Tue Mar 12 08:44:00 2019 - 1:20:21 ago
    State  : Traced/Stopped, pid: 8258

    这个其实就是Yum被占用了(被锁了)

    你可以在系统中结束掉yum的进程

rm -f /var/run/yum.pid

    Centos重启yum:

/sbin/service yum-updatesd restart

    fedora重启yum

systemctl status yum-updatesd.service

    然后去执行yum命令,会发现可以正常运行了

转载请保留原文链接
逆风
  • 本文由 发表于 2020年2月28日 09:24:14
  • 转载请务必保留本文链接:https://blog.smallxu.com/post/31/
评论  0  访客  0
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: