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
更新正常。
Copyright ? 2013-2024 8a.hk All Rights Reserved. 八艾云 版权所有 中山市八艾云计算有限公司 粤ICP备14095776号 粤公网安备 44200002445359号
增值电信业务经营许可证编号:B1-20222012
代理域名注册服务机构:西部数码