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

centos虚拟机无法安装工具

安装报错

Determining fastest mirrors
Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=7&arch=x86_64&repo=os&infra=stock error was
14: curl#6 - "Could not resolve host: mirrorlist.centos.org; 未知的错误"

下载新的 CentOS-Base.repo 到 /etc/yum.repos.d/

选择自己对应的版本。直接复制运行其中一条指令即可

CentOS 7

wget -O /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-7.repo
curl -o /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-7.repo

Centos8

wget -O /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-vault-8.5.2111.repo
curl -o /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-vault-8.5.2111.repo

Centos6

wget -O /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-vault-6.10.repo
curl -o /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-vault-6.10.repo

相关文章:

  • Android开发奇葩bug:布局宽高不自动自适应了
  • 月份天数总结
  • 【考试大纲】高级系统架构设计师考试大纲
  • 【Rabbitmq篇】高级特性----TTL,死信队列,延迟队列
  • 连锁管理系统的五大核心功能及系统设计
  • Python数字图像处理:直方图均衡化
  • 歌曲分类和流行度预测
  • 需求和开发模型
  • 旁挂组网双机热备负载分担
  • ubuntu离线安装nvidia-container-runtime
  • c++信息学第一阶段练习题
  • 在 MySQL 中,删除数据库和表后,自动递增的值通常会被重置为初始值,一般是 1。但如果自动递增不为零,可能有以下原因及解决办法:
  • 深入探索Python机器学习算法:监督学习(线性回归,逻辑回归,决策树与随机森林,支持向量机,K近邻算法)
  • IO和NIO
  • 每日学习Java之一万个为什么?[MySQL面试篇]
  • OAK相机的抗震性测试
  • BIM模型+GIS信息的融合加载(纯Threejs方案)
  • 【AI-41】网格搜索和随机搜索相结合的策略
  • ⭐算法OJ⭐位操作实战【计数】(C++ 实现)
  • 深度学习-9.简单循环神经网络
  • 课程资源网站的建设/2023第二波疫情已经到来了
  • 定制网站建设公司/seo基础课程
  • 简单房地产网站/优化大师官方免费下载
  • 3D特效做首页的网站/企业邮箱哪个好
  • 自己做的网站 能收索么/广州网站到首页排名
  • 北京住房投资建设中心网站首/宁波seo网络推广