[Solved] Alibaba Cloud Centos8 “Error: Failed to synchronize cache for repo ‘epel-modular’”

Alibaba Cloud has launched the centos8 system. The 8 series is relatively new. By default, the system does not install GIT. If you want to install Yum install git, you can directly report an error of “error: failed to synchronize cache for repo ‘EPEL modular'”, and the extended source reports an error. Baidu has no solution at all, so you can only solve it by yourself

The solution is simple:

Scheme 1: directly delete/etc/yum. Repos. D (backup first)

The file at the beginning of EPEL in the directory

is OK

Scheme 2:

Yum succeeded, but the prompt program does not exist and cannot be installed

Don’t delete the files in/etc/yum. Repos. D

Editor

vi /etc/resolv.conf

Plus

nameserver 114.114.114.114

Save

Execute Yum again successfully

Alibaba cloud recently launched centos8, but the default DNS can’t resolve the domain name of the extension library

Similar Posts: