CentOS 系统 yum 出现 /var/run/yum.pid 已被锁定的解决办法

在 CentOS 7 系统下运行 yum 的时候跳出:

/var/run/yum.pid 已被锁定,PID为 3548 的另一个程序正在运行。Another app is currently holding the yum lock; waiting for it to exit…

/var/run/yum.pid 已被锁定的解决办法

解决方法很简单,直接运行下面命令即可:

rm -f /var/run/yum.pid

扩展阅读:

yum 基本用法

发表回复

您的电子邮箱地址不会被公开。 必填项已用*标注

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>