yum因被锁定导致无法执行相关操作怎么办?

执行yum命令时,提示“Another app is currently holding the yum lock; waiting for it to exit…”等错误字样。这是因为yum被锁定无法使用导致的。

错误信息参考:

Another app is currently holding the yum lock; waiting for it to exit...
  The other application is: yum
    Memory :  40 M RSS ( 50 MB VSZ)
    Started: Thu Jan 19 01:59:25 2018 - 03:45 ago
    State  : Uninteruptable, pid: 903

解决方案

rm -rf /var/run/yum.pid

SSH执行以上命令,删除yum.pid强行解除锁定即可。

推荐站内搜索:游戏服务器防御、域名到期查询、网站空间购买、备案域名购买、国外服务器、备案信息查询、免费虚拟主机、域名注册中心、美国服务器与日本服务器域名注册价格、