http://mirrors.163.com/centos/7Server/os/x86_64/repodata/repomd.xml: [Errno 14] HTTP Error 404 - Not

执行:yum -y install gcc

出现:http://mirrors.163.com/centos/7Server/os/x86_64/repodata/repomd.xml: [Errno 14] HTTP Error 404 - Not Found

执行:

cd /etc/yum.repos.d

vim CentOS-Base.repo

把里面的7Server改成7

你可能感兴趣的:(linux)