Centos 6 yum 错误

Error: All mirror URLs are not using ftp, http[s] or file. Eg. Invalid release/repo/arch

cd /etc/yum.repos.d/
修改 CentOS-Base.repo

注释掉 mirrorlist= 开头的注释
取消 baseurl 开头的注释
将 baseurl 中的mirrorlist.centos.org 改为 vault.centos.org