admin管理员组文章数量:1600320
文章目录
- 问题
- 解决
问题
[root@ecs]# yum install -y mysql57-community-release-el7-10.noarch.rpm
Extra Packages for Enterprise Linux 8 - x86_64 171 B/s | 196 B 00:01
Errors during downloading metadata for repository 'epel':
- Status code: 404 for http://archives.fedoraproject/pub/archive/epel/8/Everything/x86_64/repodata/repomd.xml (IP: 38.145.60.23)
Error: Failed to download metadata for repo 'epel': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried
解决
这个是源的问题,需要更新yum的源
- 重命名原来的源
# 重命名原来的源
rename '.repo' '.repo.bak' /etc/yum.repos.d/*.repo
- 下载新的repo文件
# 下载新的repo文件
wget https://mirrors.aliyun/repo/Centos-vault-8.5.2111.repo -O /etc/yum.repos.d/Centos-vault-8.5.2111.repo
wget https://mirrors.aliyun/repo/epel-archive-8.repo -O /etc/yum.repos.d/epel-archive-8.repo
- 替换源地址
# 替换源地址
sed -i 's/mirrors.cloud.aliyuncs/mirrors.aliyun/g' /etc/yum.repos.d/Centos-vault-8.5.2111.repo
sed -i 's/mirrors.cloud.aliyuncs/mirrors.aliyun/g' /etc/yum.repos.d/epel-archive-8.repo
- 重新创建缓存
yum clean all
yum makecache
- 再次yum install 即可
[root@ecs]# yum install -y mysql57-community-release-el7-10.noarch.rpm
此针对ecs弹性云服务器处理方案
本文标签: downloadingErrorsCENTOSepelrepository
版权声明:本文标题:centos问题----Errors during downloading metadata for repository ‘epel‘: 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:https://www.elefans.com/dianzi/1726226209a1061555.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论