报错如下
[root@localhost ~]# yum install -y wget Loaded plugins: fastestmirror Setting up Install Process Loading mirror speeds from cached hostfile YumRepo Error: All mirror URLs are not using ftp, http[s] or file. Eg. Invalid release/repo/arch combination/ removing mirrorlist with no valid mirrors: /var/cache/yum/x86_64/6/base/mirrorlist.txt Error: Cannot find a valid baseurl for repo: base
解决办法
sed -i “s|enabled=1|enabled=0|g” /etc/yum/pluginconf.d/fastestmirror.conf mv /etc/yum.repos.d/CentOS-base.repo /etc/yum.repos.d/CentOS-base.repo.backup curl -o /etc/yum.repos.d/CentOS-base.repo https://www.xmpan.com/Centos-6-Vault-Aliyun.repo yum clean all yum makecache



