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:
- When centos7 uses yum, file contains no section headers
- Centos6 Yum Error: Cannot find a valid baseurl for repo: base
- Workaround for “could not retrieve mirrorlist” during Yum installation
- Install CentOS development tools
- Installing iperf on CentOS
- [Solved] Error in installing RPM package in CentOS – no key
- [Solved] Docker Install Error: failure: repodata/repomd.xml from mirrors.aliyun.com_docker-ce_linux_centos_docker-ce.pro
- This system is not registered with an entitlement server. You can use subscription-manager to reg…
- Python upgrade resulted in an error using yum
- Solutions to RHEL 7 “there are no enabled repos”