我是靠谱客的博主 安详网络,这篇文章主要介绍CentOS8换yum源,解决Failed to download metadata for repo ‘AppStream’问题,现在分享给大家,希望可以做个参考。
参考
出现Failed to download metadata for repo ‘AppStream‘问题解决
centos8更换国内源(阿里源)
备份
mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup
下载新的CentOS-Base.repo
wget -O /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-8.repo
如果遇到wget没有安装, 可用curl替换
curl -o /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-8.repo
替换字段
sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-*
sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-*
缓存
yum clean
yum makecache
最后
以上就是安详网络最近收集整理的关于CentOS8换yum源,解决Failed to download metadata for repo ‘AppStream’问题的全部内容,更多相关CentOS8换yum源,解决Failed内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复