Centos Error Cannot Retrieve Metalink For Repository Epel
Contents |
centOS 6 64 General
Cannot Retrieve Metalink For Repository Epel X86_64
support questions Post Reply Print view Search Advanced search 11 posts
Centos 7 Cannot Retrieve Metalink For Repository: Epel/x86_64. Please Verify Its Path And Try Again
1 2 Next mantonik Posts: 8 Joined: 2011/10/31 01:07:12 Contact: Contact mantonik Website Add EPEL repository to
Cannot Retrieve Metalink For Repository Epel Centos 7
centOS 6 64 Quote Postby mantonik » 2011/10/31 01:17:22 Hi.I want to add EPEL reporsitory to server but I have some problem with it.Server Linux 2.6.32-71.29.1.el6.x86_64 #1 SMP Mon Jun 27 19:49:27 BST 2011 x86_64 yum cannot retrieve metalink for repository epel/x86_64 x86_64 x86_64 GNU/Linuxfirst I did:rpm -Uvh http://download.fedora.redhat.com/pub/e ... noarch.rpmroot@vtcpanel [/etc/yum.repos.d]# yum repolistLoaded plugins: fastestmirrorLoading mirror speeds from cached hostfileError: Cannot retrieve metalink for repository: epel. Please verify its path and try againthen I remove that package and install rpm -ivh http://download.fedora.redhat.com/pub/e ... noarch.rpmbut I receve this same error:root@vtcpanel [/etc/yum.repos.d]# yum repolistLoaded plugins: fastestmirrorLoading mirror speeds from cached hostfileError: Cannot retrieve metalink for repository: epel. Please verify its path and try againepel.repo file:[epel]name=Extra Packages for Enterprise Linux 6 - $basearch#baseurl=http://download.fedoraproject.org/pub/epel/6/$basearchmirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-6&arch=$basearchfailovermethod=priorityenabled=1gpgcheck=1gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6[epel-debuginfo]name=Extra Packages for Enterprise Linux 6 - $basearch - Debug#baseurl=http://download.fedoraproject.org/pub/epel/6/$basearch/debugmirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-debug-6&arch=$basearchfailovermethod=priorityenabled=0gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6gpgcheck=1[epel-source]name=Extra Packages for Enterprise Linux 6 - $basearch - Source#baseurl=http://download.fedoraproject.org/pub/epel/6/SRPMSmirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-source-6&arch=$basearchfailovermethod=priorityenabled=0gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6gpgcheck=1Any suggestion how to resolve
Knowledge Base on 31 March 2016 03:49 PM Problem Resolve the "CentOS cannot retrieve metalink for repository epel rhel EPEL Error: Cannot retrieve metalink for repository: epel" cannot retrieve metalink for repository epel/x86_64 redhat error on CentOS. tl;dr sudo sed -i 's/(mirrorlist=http)s/\1/' /etc/yum.repos.d/epel.repo Solution If you error: cannot retrieve repository metadata (repomd.xml) for repository: epel see an error when attempting to install or update a package, such as:
# yum install mypackage
Loaded plugins: fastestmirror, http://www.centos.org/forums/viewtopic.php?t=1420 security
Setting up Install Process
Loading mirror speeds from cached hostfile
Error: Cannot retrieve metalink for repository: epel. Please verify its path and try again
This is fairly common on CentOS 6 if you attempt to use the EPEL repository, and https://www.esecuredata.com/centos-epel-error-cannot-retrieve-metalink-for-repository-epel/ occurs when you attempt to retrieve files from the HTTPS server instead of the HTTP server. There are two solutions: Bash command solution Run the following command from your command line: sudo sed -i 's/(mirrorlist=http)s/\1/' /etc/yum.repos.d/epel.repo Edit configuration file While the previous method directly erases the 'S' in 'HTTPS', you can also do it by editing the repository configuration file. nano /etc/yum.repos.d/epel.repo Then, find any lines such as: mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-6&arch=$basearch And erase the S from any instances of https:// mirrorlist=http://mirrors.fedoraproject.org/metalink?repo=epel-6&arch=$basearch (2 vote(s)) Helpful Not helpful Comments (0) Post a new commentReply to comment Full Name: Email: Comments: CAPTCHA Verification Please enter the text you see in the image into the textbox below (we use this to prevent automated submissions). Help Desk Software by Kayako
& MappingSocial Networking & CommunicationUtilitiesWeb BrowsersComputer & HardwareGadgetsGaming & LeisureSmartphonesMobile AppsWindows Mobile (Pocket PC / PPC)Networking Cannot Retrieve Metalink for Repository: EPEL Home»Operating Systems»Linux»Cannot Retrieve Metalink for Repository: EPEL Cannot Retrieve Metalink for Repository: EPEL When using yum to install or update software packages through "yum install" https://techjourney.net/cannot-retrieve-metalink-for-repository-epel/ or "yum update" commands, the following stop error occurred:
Loaded plugins: fastestmirror, security Loading mirror speeds from cached hostfile Error: Cannot retrieve metalink for repository: epel. Please verify its path and try again The error is related to inability to connect to external services via HTTPS (443) connection (EPEL repo uses HTTPS connection by default). There are many reasons that can cannot retrieve cause this error, thus to resolve the issue, troubleshooting and understanding the underlying issue is important. Here's several possible solutions for the error above. One possible possibility is that the CA certificates installed on the system has became outdated, and hence cannot connect directly due to unverifiable certificate errors when getting the updated metalink file for EPEL via HTTPS. In this cannot retrieve metalink scenario, update the CA certificates package with the following command: yum --disablerepo=epel -y update ca-certificates Note that you may also need to disable all repos that uses HTTPS protocol and are failing. If the CA certifications are already latest with no update available, or if you absolutely cannot get through the cannot retrieve the repo path error, it's possible to force the repository to use HTTP instead of HTTPS. However, do note that this may also indicate that your system is having other problems which you need to find out. To do so, edit the repository configuration file in /etc/yum.repos.d/, e.g. vi /etc/yum.repos.d/epel.repo, and then comment out the entries that are starting with mirrorlist=, and then uncomment the entries that are starting with baseurl=. For example, [epel] name=Extra Packages for Enterprise Linux 6 - $basearch baseurl=http://download.fedoraproject.org/pub/epel/6/$basearch #mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-6&arch=$basearch failovermethod=priority enabled=1 gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6 TipYou only need to change for the repos that are enabled, i.e. have enabled=1. An alternative is to change the URL for the mirrorlist to HTTP, from HTTPS. You can do so easily with the following command: sudo sed -i "s/mirrorlist=https/mirrorlist=http/"