解决All mirror URLs are not using ftp, http[s] or file.
今天在用yum下载东西的时候报了这种错误,网上查阅了一番才发现,原来是因为官方停掉了,也就是说原来配置文件中的URL用不了了。我们只需要该一下就好了
就一行一行复制下面的命令就行:
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
做完之后,就可以正常下载啦