我是靠谱客的博主 凶狠大地,这篇文章主要介绍yum安装报错:Errors during downloading metadata for repository ‘AppStream‘的处理第一次遇到这样的问题,现在分享给大家,希望可以做个参考。

这里写自定义目录标题

  • 第一次遇到这样的问题

第一次遇到这样的问题

用的阿里的云服务器
最后发现是阿里的镜像站有变化:https://developer.aliyun.com/mirror/centos?spm=a2c6h.13651102.0.0.73db1b11siwlNO

复制代码
1
2
3
4
5
6
7
8
9
10
11
12
13
14
[root@111]# yum update Repository 'AppStream' is missing name in configuration, using id. Repository AppStream is listed more than once in the configuration Warning: failed loading '/etc/yum.repos.d/CentOS-Epel.repo', skipping. Repository extras is listed more than once in the configuration Repository PowerTools is listed more than once in the configuration Repository centosplus is listed more than once in the configuration CentOS-8 - AppStream 8.4 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.100.100) Error: Failed to download metadata for repo 'AppStream': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried

做了很多尝试都没有解决。
最终的解决思路就是
解决思路就是删除之前的repo文件,下载新的repo文件。

复制代码
1
2
3
4
5
6
7
8
9
# 进入yum目录 cd /etc/yum.repos.d # 删除目录下所有文件(注意完整复制,不要漏了那个点) rm -rf ./* # 安装正确的源 wget -O /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-vault-8.5.2111.repo # 生成缓存 yum makecache
复制代码
1
2
3
4
5
6
7
8
9
10
11
12
13
14
[root@iZ2zedlnapeq3gssx2zcymZ yum.repos.d]# yum makecache CentOS-8.5.2111 - Base - mirrors.aliyun.com 1.3 MB/s | 4.6 MB 00:03 CentOS-8.5.2111 - Extras - mirrors.aliyun.com 13 kB/s | 10 kB 00:00 CentOS-8.5.2111 - AppStream - mirrors.aliyun.com 1.2 MB/s | 8.4 MB 00:06 Last metadata expiration check: 0:00:01 ago on Tue 29 Mar 2022 10:45:38 AM CST. Metadata cache created.

就行了

最后

以上就是凶狠大地最近收集整理的关于yum安装报错:Errors during downloading metadata for repository ‘AppStream‘的处理第一次遇到这样的问题的全部内容,更多相关yum安装报错:Errors内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(76)

评论列表共有 0 条评论

立即
投稿
返回
顶部