1] repomd.xml与metalink不匹配

分享于 

13分钟阅读

互联网

  繁體

问题:

jq install由于这个错误间歇性地失败。


http://mirrors.syringanetworks.net/fedora-epel/7/x86_64/repodata/repomd.xml: [Errno -1] repomd.xml does not match metalink for epel


https://mirrors.xmission.com/fedora-epel/7/x86_64/repodata/repomd.xml: [Errno -1] repomd.xml does not match metalink for epel


http://mirror.prgmr.com/pub/epel/7/x86_64/repodata/repomd.xml: [Errno -1] repomd.xml does not match metalink for epel


http://mirror.sfo12.us.leaseweb.net/epel/7/x86_64/repodata/repomd.xml: [Errno -1] repomd.xml does not match metalink for epel


https://dfw.mirror.rackspace.com/epel/7/x86_64/repodata/repomd.xml: [Errno -1] repomd.xml does not match metalink for epel


https://ord.mirror.rackspace.com/epel/7/x86_64/repodata/repomd.xml: [Errno -1] repomd.xml does not match metalink for epel


http://fedora.westmancom.com/epel/7/x86_64/repodata/repomd.xml: [Errno -1] repomd.xml does not match metalink for epel


http://fedora.mirrors.pair.com/epel/7/x86_64/repodata/repomd.xml: [Errno -1] repomd.xml does not match metalink for epel


http://mirror.nodesdirect.com/epel/7/x86_64/repodata/repomd.xml: [Errno -1] repomd.xml does not match metalink for epel


http://mirror.twinlakes.net/epel/7/x86_64/repodata/repomd.xml: [Errno -1] repomd.xml does not match metalink for epel


https://mirror.mrjester.net/fedora/epel/7/x86_64/repodata/repomd.xml: [Errno -1] repomd.xml does not match metalink for epel


https://mirror.vcu.edu/pub/gnu+linux/epel/7/x86_64/repodata/repomd.xml: [Errno -1] repomd.xml does not match metalink for epel


https://epel.mirror.constant.com/7/x86_64/repodata/repomd.xml: [Errno -1] repomd.xml does not match metalink for epel


http://mirror.pit.teraswitch.com/fedora/epel/7/x86_64/repodata/repomd.xml: [Errno -1] repomd.xml does not match metalink for epel


https://dl.fedoraproject.org/pub/epel/7/x86_64/repodata/repomd.xml: [Errno -1] repomd.xml does not match metalink for epel


http://mirror.siena.edu/epel/7/x86_64/repodata/repomd.xml: [Errno -1] repomd.xml does not match metalink for epel


https://mirror.dst.ca/epel/7/x86_64/repodata/repomd.xml: [Errno -1] repomd.xml does not match metalink for epel


https://mirror.csclub.uwaterloo.ca/fedora/epel/7/x86_64/repodata/repomd.xml: [Errno -1] repomd.xml does not match metalink for epel


https://download-ib01.fedoraproject.org/pub/epel/7/x86_64/repodata/repomd.xml: [Errno -1] repomd.xml does not match metalink for epel


http://packages.oit.ncsu.edu/epel/7/x86_64/repodata/repomd.xml: [Errno -1] repomd.xml does not match metalink for epel


http://mirrors.mit.edu/epel/7/x86_64/repodata/repomd.xml: [Errno -1] repomd.xml does not match metalink for epel


https://sjc.edge.kernel.org/fedora-buffet/epel/7/x86_64/repodata/repomd.xml: [Errno -1] repomd.xml does not match metalink for epel


https://mirror.atl.genesisadaptive.com/epel/7/x86_64/repodata/repomd.xml: [Errno -1] repomd.xml does not match metalink for epel


https://download-cc-rdu01.fedoraproject.org/pub/epel/7/x86_64/repodata/repomd.xml: [Errno -1] repomd.xml does not match metalink for epel


https://mirrors.upr.edu/epel/7/x86_64/repodata/repomd.xml: [Errno -1] repomd.xml does not match metalink for epel


https://mirror.arizona.edu/fedora-epel/7/x86_64/repodata/repomd.xml: [Errno -1] repomd.xml does not match metalink for epel


http://mirror.oss.ou.edu/epel/7/x86_64/repodata/repomd.xml: [Errno -1] repomd.xml does not match metalink for epel


https://mirrors.sonic.net/epel/7/x86_64/repodata/repomd.xml: [Errno -1] repomd.xml does not match metalink for epel


https://ewr.edge.kernel.org/fedora-buffet/epel/7/x86_64/repodata/repomd.xml: [Errno -1] repomd.xml does not match metalink for epel


http://mirrors.kernel.org/fedora-epel/7/x86_64/repodata/repomd.xml: [Errno -1] repomd.xml does not match metalink for epel


http://fedora-epel.mirrors.tds.net/fedora-epel/7/x86_64/repodata/repomd.xml: [Errno -1] repomd.xml does not match metalink for epel


http://mirror.team-cymru.com/epel/7/x86_64/repodata/repomd.xml: [Errno -1] repomd.xml does not match metalink for epel


http://mirror.metrocast.net/fedora/epel/7/x86_64/repodata/repomd.xml: [Errno -1] repomd.xml does not match metalink for epel


https://mirror.dal.nexril.net/fedora-epel/7/x86_64/repodata/repomd.xml: [Errno -1] repomd.xml does not match metalink for epel


https://mirror.chpc.utah.edu/pub/epel/7/x86_64/repodata/repomd.xml: [Errno -1] repomd.xml does not match metalink for epel


http://mirror.grid.uchicago.edu/pub/linux/epel/7/x86_64/repodata/repomd.xml: [Errno -1] repomd.xml does not match metalink for epel


http://mirror.math.princeton.edu/pub/epel/7/x86_64/repodata/repomd.xml: [Errno -1] repomd.xml does not match metalink for epel


https://mirror.csis.ysu.edu/fedora/epel/7/x86_64/repodata/repomd.xml: [Errno -1] repomd.xml does not match metalink for epel


https://linux-mirrors.fnal.gov/linux/fedora/epel/7/x86_64/repodata/repomd.xml: [Errno -1] repomd.xml does not match metalink for epel


https://mirror.umd.edu/fedora/epel/7/x86_64/repodata/repomd.xml: [Errno -1] repomd.xml does not match metalink for epel


https://mirrors.lug.mtu.edu/epel/7/x86_64/repodata/repomd.xml: [Errno -1] repomd.xml does not match metalink for epel


https://d2lzkl7pfhq30w.cloudfront.net/pub/epel/7/x86_64/repodata/repomd.xml: [Errno -1] repomd.xml does not match metalink for epel


https://mirror.steadfastnet.com/epel/7/x86_64/repodata/repomd.xml: [Errno -1] repomd.xml does not match metalink for epel


http://mirror.coastal.edu/epel/7/x86_64/repodata/repomd.xml: [Errno -1] repomd.xml does not match metalink for epel


http://mirror.rnet.missouri.edu/epel/7/x86_64/repodata/repomd.xml: [Errno -1] repomd.xml does not match metalink for epel


http://mirror.its.dal.ca/pub/epel/7/x86_64/repodata/repomd.xml: [Errno -1] repomd.xml does not match metalink for epel


https://mirror.us-midwest-1.nexcess.net/epel/7/x86_64/repodata/repomd.xml: [Errno -1] repomd.xml does not match metalink for epel


http://reflector.westga.edu/repos/Fedora-EPEL/7/x86_64/repodata/repomd.xml: [Errno -1] repomd.xml does not match metalink for epel


https://iad.mirror.rackspace.com/epel/7/x86_64/repodata/repomd.xml: [Errno -1] repomd.xml does not match metalink for epel


http://mirrors.liquidweb.com/fedora-epel/7/x86_64/repodata/repomd.xml: [Errno -1] repomd.xml does not match metalink for epel


http://mirror.compevo.com/epel/7/x86_64/repodata/repomd.xml: [Errno 12] Timeout on http://mirror.compevo.com/epel/7/x86_64/repodata/repomd.xml: (28, 'Connection timed out after 30006 milliseconds')


http://dl.iad2.fedoraproject.org/pub/epel/7/x86_64/repodata/repomd.xml: [Errno 14] curl#6 - "Could not resolve host: dl.iad2.fedoraproject.org; Unknown error"




答案1:

你的系统缓存的元数据与EPEL存储库的当前状态不匹配,尝试清除元数据缓存,然后重试安装。

 
yum clean metadata



或者清除所有缓存的数据:

 
yum clean all




答案2:

例如https://mirror.vcu.edu/pub/gnu_linux/epel/7/x86_64/repodata/repomd.xml 返回:


<repomd>


 <revision>1591901338</revision>


 <!-- ... -->


</repomd>



当metalink服务器告诉Yum:


<?xml version="1.0" encoding="utf-8"?>


<metalink version="3.0" xmlns="http://www.metalinker.org/" type="dynamic" pubdate="Sat, 13 Jun 2020 05:58:42 GMT" generator="mirrormanager" xmlns:mm0="http://fedorahosted.org/mirrormanager">


 <files>


 <file name="repomd.xml">


 <mm0:timestamp>1591551753</mm0:timestamp>


 <size>4851</size>


 <verification>


 <hash type="md5">34f2c5f5ac44cf223d5342364e2e9434</hash>


 <hash type="sha1">125df2220c97167ba37d86a71ac9468823231a94</hash>


 <hash type="sha256">801b295225be7b3f0c9f513093dfb0d374d85222a0f2d8324c97a0406b2ce6f1</hash>


 <hash type="sha512">50c451ab1918815e46266bd351aad6878dffd5b2c9ae31f94dad37de30a1224ad2e91b1790a0d416ad320091b0e4b989d4a18ff462c4d9913dea09bae0c53da4</hash>


 </verification>


 <!-- ... -->


 </file>


 </files>


</metalink>



metalin timestamp 1591551753 < 1591901338 revision在repomd文件中。

解决方法是:可以在/etc/yum.repos.d/epel.repo中注释掉metalink属性,并取消注释baseurl,但是,这对镜像产生负面影响,并丧失metalink数据的安全优势;

metalink数据已经用两个版本更新,这应该可以纠正问题:


<?xml version="1.0" encoding="utf-8"?>


<metalink version="3.0" xmlns="http://www.metalinker.org/" type="dynamic" pubdate="Sat, 13 Jun 2020 15:07:38 GMT" generator="mirrormanager" xmlns:mm0="http://fedorahosted.org/mirrormanager">


 <files>


 <file name="repomd.xml">


 <mm0:timestamp>1591901393</mm0:timestamp>


 <size>5479</size>


 <verification>


 <hash type="md5">2f97fb4bae338fc659fb6c83fc0b4016</hash>


 <hash type="sha1">fbd5de037e5d8a77b7cf79d07c85fc7d54bc9892</hash>


 <hash type="sha256">db54f459b84db16d3385d94b6b59e22d71866d49b92b3e94318d3afb4fdd398b</hash>


 <hash type="sha512">557754859938ec9e772cceb549c99bfeb9a44296ee2811f58e3ae4ae7853cac207f754f02c6a1af87cc62b6680900e7d5c3542dc7539b1c58fe90b06805cc05a</hash>


 </verification>


 <mm0:alternates>


 <mm0:alternate>


 <mm0:timestamp>1591551753</mm0:timestamp>


 <size>4851</size>


 <verification>


 <hash type="md5">34f2c5f5ac44cf223d5342364e2e9434</hash>


 <hash type="sha1">125df2220c97167ba37d86a71ac9468823231a94</hash>


 <hash type="sha256">801b295225be7b3f0c9f513093dfb0d374d85222a0f2d8324c97a0406b2ce6f1</hash>


 <hash type="sha512">50c451ab1918815e46266bd351aad6878dffd5b2c9ae31f94dad37de30a1224ad2e91b1790a0d416ad320091b0e4b989d4a18ff462c4d9913dea09bae0c53da4</hash>


 </verification>


 </mm0:alternate>


 </mm0:alternates>


 <!-- ... -->


 </file>


 </files>


</metalink>




答案3

yum makecache fast



刷新镜像,以便获得有效的安装源。



rep  REPO  MAT  META  Metal