当执行sudo yum --disablerepo=base install -y yum - utils命令出现一下错误
解决方案:
(1).进入/etc/yum.repos.d/目录修改默认的镜像源地址
(2).备份centos镜像源sudo cp /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup
(3).删除原有的镜像源rm -f CentOS-Base.repo
(4).使用vi CentOS-Base.repo命令,将阿里的镜像源粘贴进去
# CentOS-Base.repo
#
# The mirror system uses the connecting IP address of the client and the
# update status of each mirror to pick mirrors that are updated to and
# geographically close to the client. You should use this for CentOS updates
# unless you are manually picking other mirrors.
<