广告
报错日志:
Loading mirror speeds from cached hostfile Could not retrieve mirrorlist http://mirrorlist.centos.org?arch=x86_64&release=7&repo=sclo-rh error was 14: curl#6 - "Could not resolve host mirrorlist.centos.org: ; 未知的错误"
原因 mirrorlist.centos.org 不再被支持
解决方法:
sudo sed -i s/mirror.centos.org/vault.centos.org/g /etc/yum.repos.d/*.repo sudo sed -i s/^#.*baseurl=http/baseurl=https/g /etc/yum.repos.d/*.repo sudo sed -i s/^mirrorlist=http/#mirrorlist=https/g /etc/yum.repos.d/*.repo
正好遇到了,感谢分享
建议直接执行命令切换源
一键操作
没有介绍便是最好的介绍