yumdownloader --source which 报错:
错误详情:
Errors during downloading metadata for repository ‘fedora-source’:
- Status code: 404 for http://mirrors.aliyun.com/fedora/releases/33/Everything/source/SRPMS/repodata/repomd.xml (IP: 101.89.125.240)
Error: Failed to download metadata for repo ‘fedora-source’: Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried
解决方法:
1.错误定位:
在浏览器中查看报错中出现的地址链接: http://mirrors.aliyun.com/fedora/releases/33/Everything/source/SRPMS/repodata/repomd.xml
提示找不到,然后逐层递减,一直找到: http://mirrors.aliyun.com/fedora/releases/33/Everything/source/。
发现 source 文件夹下存在的不是 SRPMS 文件夹, 而是 tree 文件夹,所以出现问题的原因是我们访问的地址链接出错。