**
2020年12月2日下架了包括官方所有的CentOS6源(包括国内的镜像站)
**
centos6的下架使得centos6的yum无法直接再下载安装软件。
目前需要更新为下面两个源:
#阿里云
http://mirrors.aliyun.com/centos-vault/
#官方
https://vault.centos.org/
#阿里云和官方的任选其一即可
具体操作如下:
第一步修改base源:
vi /etc/yum.repos.d/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.
#
#
[base]
name=CentOS-6.10 - Base - mirrors.aliyun.com
failovermethod=priority
baseurl=http://mirrors.aliyun.com/centos-vault/6.10/os/$basearch/