yum无法下载,网关问题
Posted kairo
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了yum无法下载,网关问题相关的知识,希望对你有一定的参考价值。
由于网关地址改变没有及时更新配置,造成无法下载
failure: repodata/repomd.xml from base: [Errno 256] No more mirrors to try
http://mirrors.neusoft.edu.cn/centos/7.6.1810/os/x86_64/Packages/tftp-5.2-22.el7.x86_64.rpm: [Errno -1] Package does not match intended download. Suggestion: run yum --enablerepo=base clean metadata
Trying other mirror.
当时不知道原因,执行 yum clean all 后 出现以下错误
One of the configured repositories failed (Unknown),
and yum doesn‘t have enough cached data to continue. At this point the only
safe thing yum can do is fail. There are a few ways to work "fix" this:
Cannot find a valid baseurl for repo: base/7/x86_64
当出现以上问题的时候,可以检查一下网关配置
以上是关于yum无法下载,网关问题的主要内容,如果未能解决你的问题,请参考以下文章
Dockerfile: Docker build 无法下载包: centos->yum, debian/ubuntu->apt-get 内网后面