centos7 linux使用yum 命令时报错Another app is currently holding the yum lock;waiting for it to exit

已解决,在centos7 版本的Linux系统中

使用yum install命令安装软件时,报错:

/var/run/yum.pid已被锁定

PID为1739的另一个程序正在运行。

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

另一个应用程序是:yum

我在centos7的linux虚拟机中打算使用yum命令安装宝塔面板,命令大致为:

yum install -y wget && wget -O install.sh https://download.bt.cn/install/install_6.0.sh && sh install.sh ed8484bec

 之后就报如下错误:

centos7 linux使用yum 命令时报错Another app is currently holding the yum lock;waiting for it to exit_第1张图片概错误就是说yum已经被一个叫yum

问题的解决过程

      1、根据错误提示yum.pid已经被一个叫yum的程序占用了,导致锁定 了,此时执行yum命令的话就无法执行了,错误中提示了yum程序的PID为1739.因此自然而然的就是想到kill这个pid

sudo kill -9 1739

centos7 linux使用yum 命令时报错Another app is currently holding the yum lock;waiting for it to exit_第2张图片

 然后再次执行yum命令

centos7 linux使用yum 命令时报错Another app is currently holding the yum lock;waiting for it to exit_第3张图片就OK了

你可能感兴趣的:(Linux,Windows,linux,运维,服务器)