首页 > 系统相关 >【Bug解决】CentOS-8中“Failed to download metadata for repo ‘AppStream‘: Cannot download repomd.xml”

【Bug解决】CentOS-8中“Failed to download metadata for repo ‘AppStream‘: Cannot download repomd.xml”

时间:2022-09-19 20:37:32浏览次数:121  
标签:xml AppStream CentOS repo repomd Cannot download

【Bug解决】CentOS-8中“Failed to download metadata for repo ‘AppStream‘: Cannot download repomd.xml”_wx60ec3f390925a的技术博客_51CTO博客

 

问题原因:CentOS-8于2021年12月31日停止了源的服务

可以命令查看一下系统是不是8:cat /etc/redhat-release

解决步骤:
(1)打开/etc/yum.repos.d文件夹:
cd /etc/yum.repos.d
(2)使用以下命令进行内容的替换:
sed -i 's/$releasever/8-stream/' CentOS*repo

标签:xml,AppStream,CentOS,repo,repomd,Cannot,download
From: https://www.cnblogs.com/chenyujie/p/16708943.html

相关文章