{"id":4755,"date":"2015-05-10T15:06:33","date_gmt":"2015-05-10T07:06:33","guid":{"rendered":"http:\/\/rmohan.com\/?p=4755"},"modified":"2015-05-10T15:07:53","modified_gmt":"2015-05-10T07:07:53","slug":"why-does-yum-return-error-errno-256-no-more-mirrors-to-try","status":"publish","type":"post","link":"https:\/\/mohan.sg\/?p=4755","title":{"rendered":"Why does yum return error: [Errno 256] No more mirrors to try"},"content":{"rendered":"<div class=\"field field-name-field-kcs-issue-txt field-type-text-long field-label-above \">\n<h2 class=\"field-label\">Issue<\/h2>\n<ul>\n<li><code>yum update<\/code> fails with the error : [Errno 256] No more mirrors to try<\/li>\n<li><code>yum update<\/code> fails with :-<\/li>\n<\/ul>\n<pre><code>Error Downloading Packages:\r\nInstallMedia: [Errno 256] No more mirrors to try.\r\n<\/code><\/pre>\n<ul>\n<li>yum fails with :<\/li>\n<\/ul>\n<pre><code>Error Downloading Packages:\r\nftp-0.17-35.el5.x86_64:failure:ftp-0.17-35.el5.x86_64.rpm from Red5repo55:[Errno 256] No more mirrors to try. [[6]]\" (code -1) Packages Scheduled\r\n<\/code><\/pre>\n<ul>\n<li>yum fails with :<\/li>\n<\/ul>\n<pre><code>Downloading Packages:\r\nhttps:\/\/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 22 - \"The requested URL returned error: 404 Not Found\"\r\nTrying other mirror.\r\nError Downloading Packages:\r\n  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 256] No more mirrors to try.\r\n<\/code><\/pre>\n<\/div>\n<div class=\"field field-name-field-kcs-environment-txt field-type-text-long field-label-above \">\n<h2 class=\"field-label\">Environment<\/h2>\n<div id=\"md4\" class=\"field-items\">\n<div class=\"field-item even\">\n<ul>\n<li>Red Hat Enterprise Linux 5 and later<\/li>\n<li>Red Hat Network (RHN)<\/li>\n<li>Subscription Management (RHSM)<\/li>\n<\/ul>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"field field-name-field-kcs-resolution-txt field-type-text-long field-label-above \">\n<h2 class=\"field-label\">Resolution<\/h2>\n<div id=\"md1\" class=\"field-items\">\n<div class=\"field-item even\">\n<ul>\n<li>Check what files are present under <code>\/etc\/yum.repos.d<\/code> directory by:-<\/li>\n<\/ul>\n<pre><code># ll \/etc\/yum.repos.d\r\n<\/code><\/pre>\n<ul>\n<li>If the system is registered to RHN Classic, only <code>rhel-source.repo<\/code> should be present under <code>\/etc\/yum.repos.d\/<\/code>.<br \/>\nIf the system is registered to subscription-manager (RHSM), <code>rhel-source.repo<\/code> and &#8216;redhat.repo&#8217; are present.<br \/>\nIf any local repositories, or any other media repositories are present, remove them by :-<\/li>\n<\/ul>\n<pre><code># rm -rf \/etc\/yum.repos.d\/&lt;local or other repository name&gt;\r\n<\/code><\/pre>\n<ul>\n<li>Remove old yum cache from system by running following commands:<\/li>\n<\/ul>\n<pre><code># rm -fr \/var\/cache\/yum\/*\r\n# yum clean all\r\n<\/code><\/pre>\n<ul>\n<li>Check if you can list the valid repositories by :-<\/li>\n<\/ul>\n<pre><code># yum repolist\r\n<\/code><\/pre>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"field field-name-field-kcs-rootcause-txt field-type-text-long field-label-above \">\n<h2 class=\"field-label\">Root Cause<\/h2>\n<div id=\"md6\" class=\"field-items\">\n<div class=\"field-item even\">\n<ul>\n<li>This issue persist due to following reasons:\n<ol>\n<li>Corrupted yum cache.<\/li>\n<li>Inaccessibility of a repository URL from the system.<\/li>\n<li>Presence of customized or other media repositories.<\/li>\n<\/ol>\n<\/li>\n<\/ul>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"field field-name-field-kcs-diagnostic-txt field-type-text-long field-label-above \">\n<h2 class=\"field-label\">Diagnostic Steps<\/h2>\n<div id=\"md5\" class=\"field-items\">\n<div class=\"field-item even\">\n<ul>\n<li>Check the accessibility of the repository URL in the system\/network.<\/li>\n<\/ul>\n<pre><code># ping URL\r\n<\/code><\/pre>\n<ul>\n<li>Check the repositories under <code>\/etc\/yum.repos.d<\/code><\/li>\n<\/ul>\n<pre><code>ll \/etc\/yum.repos.d\r\n<\/code><\/pre>\n<ul>\n<li>Collect a sosreport of the affected system.<\/li>\n<\/ul>\n<\/div>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p> Issue yum update fails with the error : [Errno 256] No more mirrors to try yum update fails with :- Error Downloading Packages: InstallMedia: [Errno 256] 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 256] No more mirrors to try. [[6]]&#8221; (code -1) Packages Scheduled yum fails [&#8230;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[73],"tags":[],"_links":{"self":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/4755"}],"collection":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=4755"}],"version-history":[{"count":1,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/4755\/revisions"}],"predecessor-version":[{"id":4756,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/4755\/revisions\/4756"}],"wp:attachment":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4755"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4755"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4755"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}