关于我们

质量为本、客户为根、勇于拼搏、务实创新

< 返回新闻公共列表

centos7更新提示:Could not retrieve mirrorlist

发布时间:2024/9/7 12:17:25
香港云服务器

centos7更新失败,执行yum update -y提示:Could not retrieve mirrorlist http://www.l.com?arch=x86_64&release=7&repo=sclo-rh 。

 

怀疑是更新源方面出错了,更换为aliyun的源之后还是报错,无法执行更新。

执行yum clean all && yum makecache重新生成缓存也报错。

 

查看在/etc/yum.repos.d里面除了新设置的源CentOS-Base.repo,还有其他 *.repo文件,将其他的*.repo全部删除。

 

重新执行yum clean all && yum makecache重新生成缓存正常。

 

再次尝试升级

yum update -y

更新正常。