Fix error EPEL Repo “Cannot retrieve metalink for repository” on CentOS

31

When you installed EPEL Repository on CentOS, you use “yum” to install some application but the issue appears (Cannot retrieve metalink for repository: epel) :

Reason:
– Default in EPEL Repo is configured to connect to EPEL Server by HTTPS Connection, however in some cases the information Certificate Chain/Root Certificate on CentOS doesnt have good-new Certificates so you cannot connect to EPEL Server for retrieving metalink.

Fix error “Cannot retrieve metalink for repository: epel” on CentOS

Method 1: update ca-certificates

– You need to update your ca-certificates on CentOS.

– Then retry to use “yum” command to operate what you want.

Method 2: change the way “yum” will connect to EPEL Repo

– You need to change the method “yum” will connect to EPEL to retrive data, change from “https” -> “http” in file configuration of EPEL “epel.repo“.

– Do edit manually file ‘epel.repo’ with changing the value ‘mirrorlist=https‘ -> ‘mirrorlist=http‘.

to

 
– Then retry to use “yum” command to operate what you want.

Above is two basic way to fix error “Cannot retrieve metalink for repository: epel” on CentOS

Đánh giá sao từ người đọc :
[ Tổng : 0 - Trung bình: 0 ]

LEAVE A REPLY