【错误1】:
[root@ngx yum.repos.d]# yum makecache
CentOS Linux 8 - AppStream 146 B/s | 153 B 00:01
Errors during downloading metadata for repository 'appstream':
- Status code: 404 for https://mirrors.tuna.tsinghua.edu.cn/centos/8/AppStream/x86_64/os/repodata/repomd.xml (IP: 101.6.15.130)
Error: Failed to download metadata for repo 'appstream': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried
[root@ngx yum.repos.d]#
【处理】:
修改 /etc/yum.repos.d/CentOS-Linux-AppStream.repo
确定正确的-repo路径

本文介绍了如何解决在CentOS8系统中使用清华源下载AppStream和BaseOS repomd.xml文件时遇到的404错误。通过检查并修改CentOS-Linux-AppStream.repo和CentOS-Linux-BaseOS.repo文件,将URL中的'8'替换为'8-stream',从而修复了下载问题,成功创建了metadata缓存。
最低0.47元/天 解锁文章
4万+

被折叠的 条评论
为什么被折叠?



