报错日志 # [8 g: @$ ] d1 _' j2 q
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: ; 未知的错误"
" T% Y2 k3 g1 w1 u# H/ L原因:mirrorlist.centos.org 不再被支持 ' o% t% \( T( A, V6 O! e
( Y5 G' ?! G! Y# o' E
解决方法
% V7 |9 V( n8 O7 J5 j3 ssudo sed -i s/mirror.centos.org/vault.centos.org/g /etc/yum.repos.d/*.repo 0 u3 \! } ~/ M2 i
sudo sed -i s/^#.*baseurl=http/baseurl=https/g /etc/yum.repos.d/*.repo 4 g, A+ Y2 N5 C3 a
sudo sed -i s/^mirrorlist=http/#mirrorlist=https/g /etc/yum.repos.d/*.repo , A9 q5 S! g! j, s: k5 ]; ]
' S7 o. q" u# T |