Linux 无法执行 yum 命令

Linux 无法执行 yum 命令

一、Cannot find a valid baseurl for repo: base/7/x86_64

虚拟机安装 linux ip 出现冲突,ip重新换一个

Vi  /etc/sysconfig/network-scripts/ifcfg-ens33

BOOTPROTO=dhcp(自动获取)

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

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

  另一个应用程序是:PackageKit

    内存:140 M RSS 484 MB VSZ

    已启动: Sun Sep 13 21:23:07 2020 - 00:45之前

状态  :睡眠中,进程ID9858

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

原文地址:https://www.cnblogs.com/kali5k/p/13663562.html