centos7 yum源报错,最终解决了

报错如下

[root@localhost yum.repos.d]# yum update
已加载插件:fastestmirror
Determining fastest mirrors
https://hi5yb889.mirror.aliyuncs.com/repodata/repomd.xml: [Errno 14] HTTPS Error 404 - Not Found
正在尝试其它镜像。
To address this issue please refer to the below wiki article 

https://wiki.centos.org/yum-errors

If above article doesn't help to resolve this issue please use https://bugs.centos.org/.



 One of the configured repositories failed (added from: https://hi5yb889.mirror.aliyuncs.com),
 and yum doesn't have enough cached data to continue. At this point the only
 safe thing yum can do is fail. There are a few ways to work "fix" this:

     1. Contact the upstream for the repository and get them to fix the problem.

     2. Reconfigure the baseurl/etc. for the repository, to point to a working
        upstream. This is most often useful if you are using a newer
        distribution release than is supported by the repository (and the
        packages for the previous distribution release still work).

     3. Run the command with the repository temporarily disabled
            yum --disablerepo=hi5yb889.mirror.aliyuncs.com ...

     4. Disable the repository permanently, so yum won't use it by default. Yum
        will then just ignore the repository until you permanently enable it
        again or use --enablerepo for temporary usage:

            yum-config-manager --disable hi5yb889.mirror.aliyuncs.com
        or
            subscription-manager repos --disable=hi5yb889.mirror.aliyuncs.com

     5. Configure the failing repository to be skipped, if it is unavailable.
        Note that yum will try to contact the repo. when it runs most commands,
        so will have to try and fail each time (and thus. yum will be be much
        slower). If it is a very temporary problem though, this is often a nice
        compromise:

            yum-config-manager --save --setopt=hi5yb889.mirror.aliyuncs.com.skip_if_unavailable=true

failure: repodata/repomd.xml from hi5yb889.mirror.aliyuncs.com: [Errno 256] No more mirrors to try.
https://hi5yb889.mirror.aliyuncs.com/repodata/repomd.xml: [Errno 14] HTTPS Error 404 - Not Found

解决

搜索了一些文章,都是 CSDN 上的,但是都没用,没解决,后来看了这篇才解决的
CentOS 7- 配置阿里镜像源-阿里云开发者社区 (aliyun.com)

本作品采用《CC 协议》,转载必须注明作者和本文链接
六月的风
Junwind
《L05 电商实战》
从零开发一个电商项目,功能包括电商后台、商品 & SKU 管理、购物车、订单管理、支付宝支付、微信支付、订单退款流程、优惠券等
《L04 微信小程序从零到发布》
从小程序个人账户申请开始,带你一步步进行开发一个微信小程序,直到提交微信控制台上线发布。
讨论数量: 0
(= ̄ω ̄=)··· 暂无内容!

讨论应以学习和精进为目的。请勿发布不友善或者负能量的内容,与人为善,比聪明更重要!
躺平大叔 @ 躺平社区
文章
142
粉丝
17
喜欢
107
收藏
63
排名:258
访问:3.7 万
私信
所有博文
社区赞助商