报错日志 : k' \$ \" W! t: d
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: ; 未知的错误"
, _$ H! p7 ~7 d9 n' y( [$ n原因:mirrorlist.centos.org 不再被支持
- H, t+ ]* n. Y- Q, I2 c9 [+ U7 ?: `( h+ A
解决方法
3 k; L% E% l K. tsudo sed -i s/mirror.centos.org/vault.centos.org/g /etc/yum.repos.d/*.repo / U' L# ~$ O! f
sudo sed -i s/^#.*baseurl=http/baseurl=https/g /etc/yum.repos.d/*.repo
# m' v5 r# V7 y; t* D8 isudo sed -i s/^mirrorlist=http/#mirrorlist=https/g /etc/yum.repos.d/*.repo
7 b4 c& C f4 Z, q: v
$ ^. M( A0 r* A) I! v) P9 L. l% V9 M |