Monday 3 November 2014

Error: Cannot retrieve metalink for repository: epel. Please verify its path and try again

 Error: Cannot retrieve metalink for repository: epel. Please verify its path and try again

 

Download epel Repo for CentOS 6:

 
[root@localhost]# wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
[root@localhost]# rpm -Uvh epel-release-6*.rpm


[root@localhost]# 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

You Will get above Error.

Then Follow the Following Steps.

Edit Repo & Change https to http for [epel],[epel-debuginfo] & [epel-source].

Only Replace https to http, rest all line keep as it is
 

[root@localhost]# vim /etc/yum.repos.d/epel.repo


[epel]
mirrorlist=http://mirrors.fedoraproject.org/metalink?repo=epel-6&arch=$basearch

[epel-debuginfo]
mirrorlist=http://mirrors.fedoraproject.org/metalink?repo=epel-debug-6&arch=$basearch

[epel-source]

mirrorlist=http://mirrors.fedoraproject.org/metalink?repo=epel-source-6&arch=$basearch



[root@localhost]#  yum repolist

Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
epel/metalink                                                                                                          | 5.2 kB     00:00    
epel-source/metalink                                                                                                   | 5.2 kB     00:00    
 * base: mirror.nbrc.ac.in
 * epel: kartolo.sby.datautama.net.id
 * epel-source: kartolo.sby.datautama.net.id
 * extras: mirror.nbrc.ac.in
 * updates: mirror.nbrc.ac.in
base                                                                                                                   | 3.7 kB     00:00    
base/primary_db                                                                                                        | 4.6 MB     00:06    
epel-source                                                                                                            | 3.7 kB     00:00    
epel-source/primary_db                                                                                                 | 1.8 MB     00:06    
extras                                                                                                                 | 3.3 kB     00:00    
extras/primary_db                                                                                                      |  19 kB     00:00    
updates                                                                                                                | 3.4 kB     00:00    
updates/primary_db                                                                                                     | 171 kB     00:00    
repo id                                       repo name                                                                                 status
base                                          CentOS-6 - Base                                                                            6,518
epel                                          Extra Packages for Enterprise Linux 6 - x86_64                                            11,148
epel-source                                   Extra Packages for Enterprise Linux 6 - x86_64 - Source                                        0
extras                                        CentOS-6 - Extras                                                                             15
updates                                       CentOS-6 - Updates                                                                           209
repolist: 17,890

2 comments:

  1. Still I can't fix this issue. When I entered 2nd step it showed same error "cannot retrieve metalink repository epel .please veify the path and try again..how can I fix it?

    ReplyDelete
  2. Hi bhavya sorry for late reply, i was busy in some other project.

    ReplyDelete