我收到类似这样的错误
http://ftp.iitm.ac.in/centos/7.2.1511/os/x86_64/repodata/9b838fdcbdb8321433aa7d87eb6b0b4603fdb9e754ee2adeb6b0d3329ac03ec0-filelists.sqlite.bz2: [Errno 14] HTTP Error 404 - Not Found http://centos-hcm.viettelidc.com.vn/7.2.1511/os/x86_64/repodata/9b838fdcbdb8321433aa7d87eb6b0b4603fdb9e754ee2adeb6b0d3329ac03ec0-filelists.sqlite.bz2: [Errno 14] HTTP Error 404 - Not Found http://mirror.fibergrid.in/centos/7.2.1511/os/x86_64/repodata/9b838fdcbdb8321433aa7d87eb6b0b4603fdb9e754ee2adeb6b0d3329ac03ec0-filelists.sqlite.bz2: [Errno 14] HTTP Error 404 - Not Found and more
原因是9b838fdcbdb8321433aa7d87eb6b0b4603fdb9e754ee2adeb6b0d3329ac03ec0-filelists.sqlite.bz2
网上没有,而是 xml 文件http://centos.excellmedia.net/7.2.1511/os/x86_64/repodata/repomd.xml
包含
<location href="<location href="repodata/308b19b243c882f0278206ea4ffc4e120df78c0218867917916fd437e4d0ea49-filelists.sqlite.bz2"/>
我如何让 yum 指向正确的在线文件。
我想尝试一下,但我不确定这是否会带来更多问题
createrepo -g http://mirror.centos.org/centos/$releasever/os/$basearch/repodata/repomd.xml http://mirror.centos.org/centos/$releasever/os/$basearch
http://mirrorlist.centos.org/?release=7&arch=x86_64&repo=os包含以下链接,所有这些链接都给我类似的错误,因为那里存在不同的文件名
http://centosmirror.go4hosting.in/centos/7.2.1511/os/x86_64/
http://mirror.nbrc.ac.in/centos/7.2.1511/os/x86_64/
http://centos.mirror.net.in/centos/7.2.1511/os/x86_64/
http://ftp.iitm.ac.in/centos/7.2.1511/os/x86_64/
http://centos.excellmedia.net/7.2.1511/os/x86_64/
http://centos.webwerks.com/centos/7.2.1511/os/x86_64/
http://mirror.fibergrid.in/centos/7.2.1511/os/x86_64/
http://mirror.dhakacom.com/centos/7.2.1511/os/x86_64/
http://mirrors.digipower.vn/centos/7.2.1511/os/x86_64/
http://mirrors.vonline.vn/centos/7.2.1511/os/x86_64/
答案1
很简单,
我刚刚将其下载到repormod.xml
文件中提到的相应 repo 目录中并yum.conf
运行yum clean all
yum makecache
cachedir=/var/cache/yum/$basearch/$releasever
有效。