原因$releasever可能找不到了

解决办法:

替换 /etc/yum.repos.d/CentOS-Base.repo

# CentOS-Base.repo
#
# The mirror system uses the connecting IP address of the client and the
# update status of each mirror to pick mirrors that are updated to and
# geographically close to the client.  You should use this for CentOS updates
# unless you are manually picking other mirrors.
#
# If the mirrorlist= does not work for you, as a fall back you can try the
# remarked out baseurl= line instead.
#
#
[base]
name=CentOS-7 - Base - 163.com
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os
baseurl=http://mirrors.163.com/centos/7/os/$basearch/
gpgcheck=1
gpgkey=http://mirrors.163.com/centos/RPM-GPG-KEY-CentOS-7#released updates
[updates]
name=CentOS-7 - Updates - 163.com
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates
baseurl=http://mirrors.163.com/centos/7/updates/$basearch/
gpgcheck=1
gpgkey=http://mirrors.163.com/centos/RPM-GPG-KEY-CentOS-7#additional packages that may be useful
[extras]
name=CentOS-7 - Extras - 163.com
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=extras
baseurl=http://mirrors.163.com/centos/7/extras/$basearch/
gpgcheck=1
gpgkey=http://mirrors.163.com/centos/RPM-GPG-KEY-CentOS-7#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-7 - Plus - 163.com
baseurl=http://mirrors.163.com/centos/7/centosplus/$basearch/
gpgcheck=1
enabled=0
gpgkey=http://mirrors.163.com/centos/RPM-GPG-KEY-CentOS-7

yum makecache

Repository epel is listed more than once in the configuration
centos-sclo-rh                                                                                             | 3.0 kB  00:00:00     
http://mirrors.tencentyun.com/epel/%24releasever/x86_64/repodata/repomd.xml: [Errno 14] HTTP Error 404 - Not Found
Trying other mirror.
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/.

http://mirrors.tencentyun.com/centos/%24releasever/os/x86_64/repodata/repomd.xml: [Errno 14] HTTP Error 404 - Not Found
Trying other mirror.

One of the configured repositories failed (Qcloud centos os - x86_64),
 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=os ...

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 os
        or
            subscription-manager repos --disable=os

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=os.skip_if_unavailable=true

failure: repodata/repomd.xml from os: [Errno 256] No more mirrors to try.
http://mirrors.tencentyun.com/centos/$releasever/os/x86_64/repodata/repomd.xml: [Errno 14] HTTP Error 404 - Not Found

原文地址:https://blog.csdn.net/zhaohaiyuan123/article/details/114826328

腾讯云轻服务器yum安装报错的解决办法相关推荐

  1. CAD、3dmax等Autodesk系列软件安装报错1603解决办法

    一级标题CAD.3dmax等Autodesk系列软件安装报错1603解决办法 使用Auto Remove清理后,安装报错1603 ,如下图 该错误只会出现在2020和2021版本上,其他版本不存在该问 ...

  2. Navicat Premium12 安装报错、解决办法

    在安装Navicat的时候,发现一直无法破解安装,一直报错提示"激活失败.原因可能是由于已达到激活次数的上限.请检查你是否已在 卸载或重新安装Navicat前取消许可证秘钥. 9001000 ...

  3. Chocolatey安装过程中失败,再安装报错的解决办法

    chocolatey是一个比较好的软件安装程序,基于命令行的.大家使用dos命或cmder,可以增强windows控制台的功能. 安装命令: Set-ExecutionPolicy Bypass -S ...

  4. Mac安装brew 及安装报错的解决办法【已解决】

    ▐ 安装brew 在终端输入ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/i ...

  5. create-react-app app安装报错的解决办法

    在终端中输入create-react-app ~~搭建react开发环境时可能会报这种错: error eslint@6.3.0: The engine "node" is inc ...

  6. 福利:亲测腾讯云轻服务器248可以免费升级到448配置了

    2022年了,我们又增长一岁,是不是随着年龄的增长,学习能力会越来越厉害呢?其实是不会的. 虽然解决问题的经验随着年龄增加会提升,但是个人的成长未必如此. 在工作中,我们碰到的问题,往往是系统化类型的 ...

  7. 为了转行程序员而努力的第四十五天-二叉树,centOS联网,阿里云源配置yum makecache报错

    今天在配置上花的时间太多,主要怕进行到一半,明天就要从头开始,以至于都没有太多时间总结了,锻炼的时间也被挤掉了,争取明天早起来补上.就不多感慨了,直接进入正题. 今日进度: 1.坚持刷题,坚持听网课, ...

  8. Centos7的yum安装报错Error: Nothing to do

    目录 题注: yum 安装错误描述: 解决办法,更新yum源: 重新安装,问题解决: 题注: 安装往centos7后,有时候yum不是最新的,最好安装完系统之后,更新一下yum源.由于安装完操作系统后 ...

  9. node-sass安装失败、报错、解决办法总结

    node-sass安装失败.报错.解决办法总结 1.首先需要考虑三个方面的问题: (1.) Node版本,node-sass版本,python版本. node版本建议用node12,可以查一下Node ...

最新文章

  1. 仿人智能控制器的参数简化(已发表于《计算机测量与控制》2013年第4期)
  2. 著名ERP厂商的SSO单点登录解决方案介绍一
  3. golang 中的 init 和 main函数
  4. python入门指南 小说-Python入门指南 作者:许半仙(4)
  5. u-boot支持LCD显示(基于TQ2440)
  6. JZOJ 5050. 【GDOI2017模拟一试4.11】颜色树
  7. VTK:vtkAxisActor用法实战
  8. python singleton design pattern super() 多继承
  9. 【数据结构基础】【散列表】
  10. 【Linux 命令学习第一天
  11. POJ3978 Primes【素数筛选+前缀和】
  12. 安装程序工具 (Installutil.exe)22
  13. 2017.3.27-morning
  14. 【Python】:SIFT算法的实现
  15. QCC3005 芯片开发过程中碰到的一些问题
  16. 万字胶囊网络超详细总结(原理加pytorch代码)
  17. 英伟达虚拟服务器显卡,ESXi系统虚拟机直连NVIDIA显卡
  18. 【蓝桥杯】2019年第十届蓝桥杯(个人赛) 大赛介绍、注意事项及赛后总结
  19. 第一章节: 光源种类介绍
  20. Vue设计模式,发布订阅,响应式原理(简略版)

热门文章

  1. 逐渐告别尴尬“测速期”,英特尔展示 5G 多领域应用
  2. 评定兰花价格的七项标准!
  3. datawhale深入浅出Pytorch02——Pytorch各个模块组件
  4. com.android.coolwind,土豆视频(com.tudou.android) - 9.2.5 - 应用 - 酷安
  5. Python基于Flask框架实现视频直播,电脑桌面录屏web端展示,远程控制电脑
  6. 风暴控制(storm control)
  7. APK文件完全破解(源码可见)
  8. 《从案例中学习JavaScript》之实现对话效果
  9. 提高代码速度的“正确姿势”
  10. 真的输了,五笔输入法败给拼音,它输给了时代