Xan*_*hos 5 linux centos terminal yum
我现在一直在尝试使用 yum,但由于某种原因,甚至搜索工作都不再工作了。我什至尝试将我已经下载的包放在搜索条件中,结果是一样的。
[root@AMDFX03 Downloads]# yum search glibc
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
epel/metalink | 22 kB 00:00
* base: centos.secrel.com.br
* epel: archive.linux.duke.edu
* extras: centos.secrel.com.br
* rpmforge: apt.sw.be
* updates: centos.secrel.com.br
adobe-linux-x86_64/primary | 1.2 kB 00:00
http://linuxdownload.adobe.com/linux/x86_64/repodata/primary.xml.gz:
[Errno -1] Metadata file does not match checksum
Trying other mirror.
Error: failure: repodata/primary.xml.gz from adobe-linux-x86_64:
[Errno 256] No more mirrors to try.
Run Code Online (Sandbox Code Playgroud)
无论我做什么,这个错误总是出现。拜托,你能告诉我如何解决这个问题,或者至少如何重置 yum 的配置吗?
首先,感谢 SnakeDoc 的帮助,我对这个错误感到绝望。其次,我在一个论坛中发现,通过将 http_caching=none 添加到 /etc/ 中的 yum.conf 文件中,我成功解决了该问题。
似乎使用“yum clean all”正在清理,但正在从缓存中检索损坏的元数据。有了这个,就没事了。