操作步骤
- 备份原始yum源文件
cp /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.bak
- 替换yum源文件,此处使用“网易”源举例(阿里、清华等源试了多次都不行)
在后续yum install过程中发现GPG key提示不正确,所以直接将配置中gpgcheck置为0
# 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 ar