Why does Yum return error: [Errno] No more mirrors to try?

Source: Internet
Author: User
Tags yum repolist

https://access.redhat.com/solutions/203603

ISSUE

Yum update fails with the error: [Errno-] No more mirrors-try
Yum update fails with:-< Br>error downloading p Ackages:
Installmedia: [Errno] No more mirrors to try.
Yum fails with:
Error downloading Packages:
ftp-0.17-35.el5.x86_64:failure:ftp-0.17-35.el5.x86_64.rpm from Red5repo55:[errno [] No more mirrors to try. [[6]] "(code-1) Packages scheduled
Yum fails with:
Downloading Packages:
https://cdn.redhat.com/content/ DIST/RHEL/SERVER/6/6SERVER/X86_64/SUPPLEMENTARY/OS/PACKAGES/JAVA-1.6.0-IBM-1.6.0.15.0-1JPP.1.EL6_4.X86_64.RPM: [Errno 14] Pycurl ERROR-"The requested URL returned error:404 not Found"
Trying other mirror.
Error downloading Packages:
1:java-1.6.0-ibm-1.6.0.15.0-1jpp.1.el6_4.x86_64:failure:packages/ java-1.6.0-ibm-1.6.0.15.0-1jpp.1.el6_4.x86_64.rpm from Rhel-6-server-supplementary-rpms: [Errno) No more mirrors To try.
Environment

Red Hat Enterprise Linux 5 and later
Red Hat Network (portal)
Subscription Management (RHSM)
RESOLUTION

Check what files is present UNDER/ETC/YUM.REPOS.D directory by:-
# LL/ETC/YUM.REPOS.D
If the system is registered to the portal Classic, only Rhel-source.repo should be present under/etc/yum.repos.d/.
If the system is registered to Subscription-manager (RHSM), Rhel-source.repo and ' Redhat.repo ' are present.
If any local repositories, or any other media repositories is present, remove them by:-
# rm-rf/etc/yum.repos.d/<local or other repository name>
Remove old Yum cache from system by running following commands:
# rm-fr/var/cache/yum/*
# Yum Clean All
Check If you can list the valid repositories by:-
# yum Repolist
ROOT cause

This issue persist due to following reasons:
Corrupted Yum cache.
Inaccessibility of a repository URL from the system.
Presence of customized or other media repositories.
DIAGNOSTIC STEPS

Check the accessibility of the repository URL in the system/network.
# ping URL
Check the repositories UNDER/ETC/YUM.REPOS.D
Ll/etc/yum.repos.d
Collect a sosreport of the affected system.

Why does Yum return error: [Errno] No more mirrors to try?

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.