参考连接:https://www.cnblogs.com/pistachio123/p/14301949.html
1.进入 路径:
cd /etc/yum.repos.d
copy CentOS-Base.repo
cp CentOS-Base.repo CentOS-Base.repo.bak
2. 修改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.
#
# If the mirrorlist= does not work for you, as a fall back you can try the
# remarked out baseurl= line instead.
#
[centos-office]
name=centos-office
failovermethod=priority
baseurl=https://vault.centos.org/6.10/os/x86_64/
gpgcheck=1
gpgkey=https://vault.centos.org/6.10/os/x86_64/RPM-GPG-KEY-CentOS-6
修改后执行yum update 和yum upgrade,不再报错 ,记录一下,防止下次找不到yum源