阿里雲官方解釋是centos8官方源已下線,建議切換centos-vault源
解決方法:
1.刪除AppStream源
rm -f /etc/yum.repos.d/CentOS-AppStream.repo
2,取消並備份舊yum源(可直接刪除)
mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup
3.下載vault源
curl -o /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-vault-8.5.2111.repo
4.清除yum緩存
yum clean all
5.生成新緩存
yum makecache
轉自(1條消息) Error: Failed to download metadata for repo ‘AppStream‘_manong__的博客-CSDN博客
本博客內容僅供學習使用