Advertisements

Using yum behind a proxy on CentOS 6.3 and showing message Error: Cannot retrieve metalink for repository: epel. Please verify its path and try again

I’m behind a proxy and having problems using the EPEL repository on CentOS 6.3.

After installing it, it shows the message Error: Cannot retrieve metalink for repository: epel. Please verify its path and try again

root@linux:~ # yum repolist
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
Error: Cannot retrieve metalink for repository: epel. Please verify its path and try again

From what I read, yum is not able to access the repository using HTTPS. So replace https for http

root@linux:~ # mv /etc/yum.repos.d/epel.repo /etc/yum.repos.d/epel.repo.bak
root@linux:~ # sed ‘s/https/http/g’ /etc/yum.repos.d/epel.repo.bak > /etc/yum.repos.d/epel.repo

Bug 486324 – (yum with proxy) and (repo with https uri) / ssl request doesn’t work throught proxy

Advertisements
%d bloggers like this: