Posted by: Master Will | May 18, 2015

YUM Giving “Cannot retrieve metalink for repository: epel” Error

Purpose

In our base CentOS 6.3 image it uses a few endpoints in the EPEL repos that are set by default that use SSL 3.0. Due to this you will receive the error noted below when attempting to use yum update from the instance. This article will show you how to remedy that while we work on deploying an updated CentOS 6.x image.

 

Loaded plugins: fastestmirror, security
Determining fastest mirrors
Error: Cannot retrieve metalink for repository: epel. Please verify its path and try again.

Notes

We will update this knowledge base article once we have an updated and fixed CentOS 6.x image.

The CentOS 5.8 and CentOS 7 images available to use don’t have this issue.

Walkthrough Steps

Running this command will update the repo to use HTTP rather than HTTPS:

sudo sed -i "s/mirrorlist=https/mirrorlist=http/" /etc/yum.repos.d/epel.repo

You should then be able to update with this command:
yum -y update


Source: https://community.hpcloud.com/article/centos-63-instance-giving-cannot-retrieve-metalink-repository-epel-error


					
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Categories

%d bloggers like this: