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
2、删除文件
rm -f *.repo
3、设置
curl -o /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-vault-8.5.2111.repo
4、缓存
yum makecache
5、安装包
yum install vim