当前位置: 首页 > article >正文

Could not resolve host: mirrorlist.centos.org

yum安装软件的时候提示这个

已加载插件:fastestmirror
Loading mirror speeds from cached hostfile


 One of the configured repositories failed (未知),
 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=<repoid> ...

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

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

Cannot find a valid baseurl for repo: centos-openstack-train

主要是这个

Could not resolve host: mirrorlist.centos.org

解决:

sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-OpenStack-train.repo
sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-OpenStack-train.repo

参考链接:https://stackoverflow.com/questions/78692851/could-not-retrieve-mirrorlist-http-mirrorlist-centos-org-release-7arch-x86-6


http://www.kler.cn/a/470320.html

相关文章:

  • Python 爬虫验证码识别
  • sunrays-framework(太阳射线框架搭建)
  • select下拉框,首次进入页面没有显示value的情况
  • 重新整理机器学习和神经网络框架
  • 装修房子,你会选购灯和搭配灯光吗?
  • 最好用的图文识别OCR -- PaddleOCR(2) 提高推理效率(PPOCR模型转ONNX模型进行推理)
  • 服务器双网卡NCCL通过交换机通信
  • 抖音生活服务商系统源码如何搭建?
  • asp.net core mvc中的模板页(父页面,布局页)和部分视图(Partial View)
  • Go语言的 的编程环境(programming environment)核心知识
  • C++ Qt练习项目 QSpinBox和QDoubleSpinBos 未完待续
  • 小程序与物联网(IoT)融合:开启智能生活新篇章
  • Tableau数据可视化与仪表盘搭建-基础图表制作
  • Python书籍推荐第一弹:带你玩转Python
  • 实现自定义集合类:深入理解C#中的IEnumerable<T>接口
  • uniapp获取安卓与ios的唯一标识
  • 【年前学SHU分享】:教育发展、人工智能、电子通信、能源
  • SpiderFlow平台v0.5.0爬取动态渲染的页面
  • 制作一个纯净版的系统镜像(Linux,Window都可以)
  • Anaconda安装R环境
  • .NET 9.0 WebApi 发布到 IIS 详细步骤
  • Kafka优势剖析-高效的数据复制
  • 特殊数据类型的深度分析:JSON、数组和 HSTORE 的实用价值
  • 从 Facebook 看全球社交格局演变
  • IDEA试用总结
  • 深入解析 Java 字符串分割:split 方法的行为与陷阱