- Status code: 404 for http://mirrors.cloud.aliyuncs.com/centos/8/AppStream/x86_64/os/repodata/repom
CentOS Linux 8 - AppStream 7.3 kB/s | 2.3 kB 00:00
Errors during downloading metadata for repository ‘appstream’:
Status code: 404 for http://mirrors.cloud.aliyuncs.com/centos/8/AppStream/x86_64/os/repodata/repomd.xml (IP: 100.100.2.148)
错误:为 repo ‘appstream’ 下载元数据失败 : Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried
解决方案:
1、进入 /etc/yum.repos.d
cd /etc/yum.repos.d
1
2、删除文件
rm -f *.repo
1
3、设置
curl -o /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-vault-8.5.2111.repo
1
4、缓存
yum makecache
1
2
5、安装包
yum install vim
1
————————————————
版权声明:本文为CSDN博主「will_net」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/will_net/article/details/124458114