栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 系统运维 > 运维 > Linux

centos问题----Errors during downloading metadata for repository ‘epel‘:

Linux 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

centos问题----Errors during downloading metadata for repository ‘epel‘:

文章目录
  • 问题
  • 解决

问题
[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.org/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的源

  1. 重命名原来的源
# 重命名原来的源
rename '.repo' '.repo.bak' /etc/yum.repos.d/*.repo
  1. 下载新的repo文件
# 下载新的repo文件
wget https://mirrors.aliyun.com/repo/Centos-vault-8.5.2111.repo -O /etc/yum.repos.d/Centos-vault-8.5.2111.repo
wget https://mirrors.aliyun.com/repo/epel-archive-8.repo -O /etc/yum.repos.d/epel-archive-8.repo
  1. 替换源地址
# 替换源地址
sed -i 's/mirrors.cloud.aliyuncs.com/mirrors.aliyun.com/g'  /etc/yum.repos.d/Centos-vault-8.5.2111.repo 
sed -i 's/mirrors.cloud.aliyuncs.com/mirrors.aliyun.com/g'  /etc/yum.repos.d/epel-archive-8.repo

  1. 重新创建缓存
yum clean all 
yum makecache
  1. 再次yum install 即可
[root@ecs]# yum install -y mysql57-community-release-el7-10.noarch.rpm

此针对ecs弹性云服务器处理方案

转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/849670.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号