阿里云 Centos8 报错“Error: Failed to synchronize cache for repo 'epel-modular'”解决方案

阿里云已经上线centos8系统,8系列的比较新,系统默认没安装git,想安装下 yum install git 直接报错 “Error: Failed to synchronize cache for repo 'epel-modular'”,扩展源报错,百度完全无解决方案,那只能自己解决了!

解决方法很简单:

方案一:直接删除/etc/yum.repos.d(先备份)

目录下epel开头的文件
阿里云 Centos8 报错“Error: Failed to synchronize cache for repo 'epel-modular'”解决方案
就可以yum了。

方案二:

yum 成功 但是提示程序不存在无法安装

不删除 /etc/yum.repos.d里面的文件

编辑

vi /etc/resolv.conf

加上 

nameserver 114.114.114.114

保存

再执行yum 成功

阿里云最近上线centos8,默认DNS居然无法解析扩展库域名。

上一篇:7.Eclipse中创建新Maven项目


下一篇:Oracle下如何用rman备份到特定的sequence