CentOS8使用putty安装MySQL时搜不到(无法下载)元数据,报Errors during downloading metadata for repository ‘epel‘:

CentOS8使用putty安装MySQL时搜不到(无法下载)元数据,报Errors during downloading metadata for repository ‘epel‘:

运行以下命令替换repo文件中的链接,就是这一步出错了,官方提供的命令:

1、sed -i ‘s/mirrors.cloud.aliyuncs.com/url_tmp/g’ /etc/yum.repos.d/Centos-vault-8.5.2111.repo && sed -i ‘s/mirrors.aliyun.com/mirrors.cloud.aliyuncs.com/g’ /etc/yum.repos.d/Centos-vault-8.5.2111.repo && sed -i ‘s/url_tmp/mirrors.aliyun.com/g’ /etc/yum.repos.d/Centos-vault-8.5.2111.repo

2、sed -i ‘s/mirrors.aliyun.com/mirrors.cloud.aliyuncs.com/g’ /etc/yum.repos.d/epel-archive-8.repo

http://mirrors.cloud.aliyuncs.com需要替换为http://mirrors.aliyun.com,但是官方提供的命令没替换完,如果有执行官方提供的命令还是不行的话执行下面的命令:

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

CentOS8使用putty安装MySQL时搜不到(无法下载)元数据,报Errors during downloading metadata for repository ‘epel‘:

运行以下命令重新创建缓存
yum clean all && yum makecache

CentOS8使用putty安装MySQL时搜不到(无法下载)元数据,报Errors during downloading metadata for repository ‘epel‘:

执行成果,yum install也可以正常使用了

转自:https://blog.csdn.net/qq_51515673/article/details/124273515

Original: https://www.cnblogs.com/javalinux/p/16421945.html
Author: hellodev
Title: CentOS8使用putty安装MySQL时搜不到(无法下载)元数据,报Errors during downloading metadata for repository ‘epel‘:

原创文章受到原创版权保护。转载请注明出处:https://www.johngo689.com/8654/

转载文章受原作者版权保护。转载请注明原作者出处!

(0)

大家都在看

免费咨询
免费咨询
扫码关注
扫码关注
联系站长

站长Johngo!

大数据和算法重度研究者!

持续产出大数据、算法、LeetCode干货,以及业界好资源!

2022012703491714

微信来撩,免费咨询:xiaozhu_tec

分享本页
返回顶部