{"id":6478,"date":"2017-02-11T17:10:05","date_gmt":"2017-02-11T09:10:05","guid":{"rendered":"http:\/\/rmohan.com\/?p=6478"},"modified":"2017-02-11T17:10:05","modified_gmt":"2017-02-11T09:10:05","slug":"centos-fix-broken-yum-repo-metadata","status":"publish","type":"post","link":"https:\/\/mohan.sg\/?p=6478","title":{"rendered":"CentOS: Fix broken yum repo metadata"},"content":{"rendered":"<div class=\"entry-content\">\n<p>Happened because I added EPEL, I believe. Very strange, on another, identical machine (steps 1:1) it worked fine, but on this box suddenly this appeared when trying to yum install something:<\/p>\n<p><code>[...]<br \/>\n--&gt; Processing Dependency: libnuma.so.1()(64bit) for package: libvirt-0.10.2-29.el6_5.11.x86_64<br \/>\n--&gt; Processing Dependency: libnl.so.1()(64bit) for package: libvirt-0.10.2-29.el6_5.11.x86_64<br \/>\n--&gt; Processing Dependency: libnetcf.so.1()(64bit) for package: libvirt-0.10.2-29.el6_5.11.x86_64<br \/>\n--&gt; Processing Dependency: libgnutls.so.26()(64bit) for package: libvirt-0.10.2-29.el6_5.11.x86_64<br \/>\n--&gt; Processing Dependency: libavahi-common.so.3()(64bit) for package: libvirt-0.10.2-29.el6_5.11.x86_64<br \/>\n--&gt; Processing Dependency: libavahi-client.so.3()(64bit) for package: libvirt-0.10.2-29.el6_5.11.x86_64<br \/>\n---&gt; Package qemu-kvm.x86_64 2:0.12.1.2-2.415.el6_5.10 will be installed<br \/>\nhttp:\/\/mirror2.hs-esslingen.de\/centos\/6.5\/updates\/x86_64\/repodata\/607e7e1f0586f3b6c3478b8b07debbb174be378c0b45f30836e74aaaf3919b5e-filelists.sqlite.bz2: [Errno 14] PYCURL ERROR 22 - \"The requested URL returned error: 404 Not Found\"<br \/>\nTrying other mirror.<br \/>\nhttp:\/\/centos.mirror.sharkservers.co.uk\/centos\/6.5\/updates\/x86_64\/repodata\/607e7e1f0586f3b6c3478b8b07debbb174be378c0b45f30836e74aaaf3919b5e-filelists.sqlite.bz2: [Errno 14] PYCURL ERROR 22 - \"The requested URL returned error: 404 Not Found\"<br \/>\nTrying other mirror.<br \/>\nhttp:\/\/ftp.plusline.de\/centos\/6.5\/updates\/x86_64\/repodata\/607e7e1f0586f3b6c3478b8b07debbb174be378c0b45f30836e74aaaf3919b5e-filelists.sqlite.bz2: [Errno 14] PYCURL ERROR 22 - \"The requested URL returned error: 404 Not Found\"<br \/>\nTrying other mirror.<br \/>\nhttp:\/\/ftp.hosteurope.de\/mirror\/centos.org\/6.5\/updates\/x86_64\/repodata\/607e7e1f0586f3b6c3478b8b07debbb174be378c0b45f30836e74aaaf3919b5e-filelists.sqlite.bz2: [Errno 14] PYCURL ERROR 22 - \"The requested URL returned error: 404 Not Found\"<br \/>\nTrying other mirror.<br \/>\nhttp:\/\/mirror.netcologne.de\/centos\/6.5\/updates\/x86_64\/repodata\/607e7e1f0586f3b6c3478b8b07debbb174be378c0b45f30836e74aaaf3919b5e-filelists.sqlite.bz2: [Errno 14] PYCURL ERROR 22 - \"The requested URL returned error: 404 Not Found\"<br \/>\nTrying other mirror.<br \/>\nhttp:\/\/centos.intergenia.de\/6.5\/updates\/x86_64\/repodata\/607e7e1f0586f3b6c3478b8b07debbb174be378c0b45f30836e74aaaf3919b5e-filelists.sqlite.bz2: [Errno 14] PYCURL ERROR 22 - \"The requested URL returned error: 404 Not Found\"<br \/>\nTrying other mirror.<br \/>\nhttp:\/\/centos.bio.lmu.de\/6.5\/updates\/x86_64\/repodata\/607e7e1f0586f3b6c3478b8b07debbb174be378c0b45f30836e74aaaf3919b5e-filelists.sqlite.bz2: [Errno 14] PYCURL ERROR 22 - \"The requested URL returned error: 404 Not Found\"<br \/>\nTrying other mirror.<br \/>\nhttp:\/\/centos.psw.net\/centos\/6.5\/updates\/x86_64\/repodata\/607e7e1f0586f3b6c3478b8b07debbb174be378c0b45f30836e74aaaf3919b5e-filelists.sqlite.bz2: [Errno 14] PYCURL ERROR 22 - \"The requested URL returned error: 404 Not Found\"<br \/>\nTrying other mirror.<br \/>\nhttp:\/\/mirror.maeh.org\/centos\/6.5\/updates\/x86_64\/repodata\/607e7e1f0586f3b6c3478b8b07debbb174be378c0b45f30836e74aaaf3919b5e-filelists.sqlite.bz2: [Errno 14] PYCURL ERROR 22 - \"The requested URL returned error: 404 Not Found\"<br \/>\nTrying other mirror.<br \/>\nftp:\/\/mirror.fraunhofer.de\/centos.org\/6.5\/updates\/x86_64\/repodata\/607e7e1f0586f3b6c3478b8b07debbb174be378c0b45f30836e74aaaf3919b5e-filelists.sqlite.bz2: [Errno 14] PYCURL ERROR 19 - \"Given file does not exist\"<br \/>\nTrying other mirror.<br \/>\nError: failure: repodata\/607e7e1f0586f3b6c3478b8b07debbb174be378c0b45f30836e74aaaf3919b5e-filelists.sqlite.bz2 from updates: [Errno 256] No more mirrors to try.<br \/>\nYou could try using --skip-broken to work around the problem<br \/>\nYou could try running: rpm -Va --nofiles --nodigest<br \/>\n<\/code><\/p>\n<p>Fixed by googling and running this:<br \/>\n<code><br \/>\nyum clean metadata<br \/>\nyum clean dbcache<br \/>\nyum update<\/code><\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"\n<p>Happened because I added EPEL, I believe. Very strange, on another, identical machine (steps 1:1) it worked fine, but on this box suddenly this appeared when trying to yum install something:<\/p>\n<p>[&#8230;] &#8211;&gt; Processing Dependency: libnuma.so.1()(64bit) for package: libvirt-0.10.2-29.el6_5.11.x86_64 &#8211;&gt; Processing Dependency: libnl.so.1()(64bit) for package: libvirt-0.10.2-29.el6_5.11.x86_64 &#8211;&gt; Processing Dependency: libnetcf.so.1()(64bit) for package: libvirt-0.10.2-29.el6_5.11.x86_64 &#8211;&gt; [&#8230;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5,73],"tags":[],"_links":{"self":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/6478"}],"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=6478"}],"version-history":[{"count":1,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/6478\/revisions"}],"predecessor-version":[{"id":6479,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/6478\/revisions\/6479"}],"wp:attachment":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=6478"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=6478"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=6478"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}