epel use error

在CentOS 操作系统最小安装后,安装第三方源仓库--EPEL 后进行yum 缓存更新操作出现以下报错
Cannot retrieve metalink for repository: epel/x86_64. Please verify its path and try again

Solve the following steps:
1. Update the CA certificate
yum upgrade ca-certificates --disablerepo=epel

2.YUM dependent components of the SSL protocol version support issues, known EPEL site currently supports only TLS1.2 and TLS1.3
yum -y update yum curl wget openssl --disablerepo=epel

After performing the above steps, the operation of the test yum repolist

Guess you like

Origin blog.51cto.com/8104306/2425404