Solved: Cannot retrieve metalink for repository: epel

In The previous article we discussed about Solved: JMeter Installation Unable to access jarfile ApacheJMeter.jar errorlevel=1

Cannot retrieve metalink for repository: epel ? 

If you get above error while installing different packages in CentOS virtual machine then here we have given two approaches to solve it.

Solution:


1) Just update SSL Certificates using following command and it should solve this issue.

sudo yum clean all
sudo yum upgrade ca-certificates --disablerepo=epel

Disable epel repo before executing this command.

2) Go to /etc/yum.repos.d

Replace https with http and Save it in epel.repo.

[epel]
name=Extra Packages for Enterprise Linux 6 – $basearch
#mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-6&arch=$basearch
mirrorlist=http://mirrors.fedoraproject.org/metalink?repo=epel-6&arch=$basearch
.
.
.

[epel-debuginfo]
name=Extra Packages for Enterprise Linux 6 – $basearch – Debug
#mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-debug-6&arch=$basearch
mirrorlist=http://mirrors.fedoraproject.org/metalink?repo=epel-debug-6&arch=$basearch
.
.
.

[epel-source]
name=Extra Packages for Enterprise Linux 6 – $basearch – Source
#mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-source-6&arch=$basearch
mirrorlist=http://mirrors.fedoraproject.org/metalink?repo=epel-source-6&arch=$basearch
.
.
.

In the next Article we will discuss about Solved: Convert RAW to NTFS – USB Hard disk

Labels: