具体问题
在做 YUM 源更新时候,报如下错误:
1 | Determining fastest mirrors |
解决办法
参考:https://developer.aliyun.com/mirror/centos?spm=a2c6h.13651102.0.0.3e221b111Mx5i4
下载新的 CentOS-Base.repo 到 /etc/yum.repos.d/,然后将 /etc/yum.repos.d/CentOS-Base.repo 中的 $releasever 变量 export 到环境中,赋值为 7(我的是 CentOS 7),改完之后再次 yum update 发现就 OK 了。
本博客所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议。转载请注明来源 小五的个人杂货铺!
