Centos 7YUM出现COULD NOT RETRIEVE MIRRORLIST

本文介绍了新手在安装CentOS 7时遇到YUM报错'COULD NOT RETRIEVE MIRRORLIST'的解决过程。通过检查yum安装状态、验证resolv.conf配置和网卡配置,逐步解决问题。最后通过重启系统,成功修复YUM并能正常运行。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

新新新手,今天刚刚接触使用centos7,在装docker时候发现使用yum时候出现了报错

Could not retrieve mirrorlist http://mirrorlist.centos.org/…

Yum Package Manager
Yum is an automatic updater and package installer/remover for rpm systems. It automatically computes dependencies and figures out what things should occur to install packages. It makes it easier to maintain groups of machines without having to manually update each one using rpm. Yum has a plugin interface for adding simple features. Yum can also be used from other python programs via its module inteface.(http://yum.baseurl.org/)
所以,同为新手,奶妈级指导解决问题

查看yum的安装情况

首先 键入yum --help查看yum的安装情况
在这里插入图片描述
这种呢就是正常情况,好下一步

验证配置resolv.conf

验证配置resolv.conf是否配置
键入vi /etc

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值