1.出现问题就更换源就可以了
Loading mirror speeds from cached hostfile Could not retrieve mirrorlist htt
CentOS报错:Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=7&arch=x86_64&repo=os&infra=stock32 error was 14: curl#6 - "Could not resolve host: mirrorlist.centos.org; Unknown error"
关于CentOS报错:Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=7&arch=x86_64&repo=os&infra=stock32 error was 14: curl#6 - "Could not resolve host: mirrorlist.centos.org; Unknown error"问题,已解决
在CentOS系统中更换为阿里云源可以通过以下步骤进行
1.备份当前的YUM源配置文件
sudo cp -a /etc/yum.repos.d /etc/yum.repos.d.backup
2.清理原有的YUM源配置文件
sudo rm -f /etc/yum.repos.d/*.repo
3.下载阿里云的YUM源配置文件
sudo curl -o /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
4.清除缓存并生成新的缓存
sudo yum clean all
sudo yum makecache
本文转载自: https://blog.csdn.net/jcmj123456/article/details/140568173
版权归原作者 风水道人 所有, 如有侵权,请联系我们删除。
版权归原作者 风水道人 所有, 如有侵权,请联系我们删除。