您现在的位置是:首页 > 经验记录>服务器相关>阿里云 Failed to download metadata for repo ‘AppStream‘(centos8放弃维护) 网站首页 服务器相关
阿里云 Failed to download metadata for repo ‘AppStream‘(centos8放弃维护)
Error: Failed to download metadata for repo ‘AppStream‘
使用yum安装时出现如下错误:
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)
Error: Failed to download metadata for repo 'AppStream': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried
问题分析
阿里云解释: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
附加
如果出现 Couldn't resolve host 'mirrors.cloud.aliyuncs.com' ,非阿里云服务器无法访问其内网域名,需要作替换,eg:
sed -i -e '/mirrors.cloud.aliyuncs.com/d' -e '/mirrors.aliyuncs.com/d' /etc/yum.repos.d/CentOS-Base.repo
版权声明:本文为CSDN博主「脱发队长」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/manong__/article/details/122842090
随机推荐
- GitHub release文件被墙下载失败问题-转载
- Centos安装aapt
- go-colly 使用文档【翻译】
- Mysql允许远程链接(直接使用navicat走非ssh通道连接)的方法
- windows phpStudy ThinkPHP 5.1 Workerman 快速上手指南
- 如何将本地未提交更改合并到另一个Git分支中
- Laravel框架下,页面(包含大量echarts图表)html导出为PDF实现,可批量.
- laravel7之后,日期序列化Carbon,保留以前YmdHis格式的办法
- ubuntu下nginx环境php7.1安装ZipArchive
- ubuntu apache2 ssl配置