centos7.6 yum 一直超时,换了163和ali源都不行,但是都能ping通的

yum一直超时

failure: repodata/repomd.xml from base: [Errno 256] No more mirrors to try.

: [Errno 12] Timeout on
http://mirrors.aliyun.com/centos/7/os/x86_64/repodata/repomd.xml
: (28, 'Operation too slow. Less than 1000 bytes/sec transferred the last 30 seconds')

curl 也没速度

curl -o /etc/yum.repos.d/CentOS-Base.repo

% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- 0:04:52 --:--:-- 0

但是能ping通的

PING mirrors.aliyun.com.w.alikunlun.com (111.48.183.229) 56(84) bytes of data.
64 bytes from 111.48.183.229 (111.48.183.229): icmp_seq=1 ttl=56 time=9.93 ms
64 bytes from 111.48.183.229 (111.48.183.229): icmp_seq=2 ttl=56 time=9.30 ms
64 bytes from 111.48.183.229 (111.48.183.229): icmp_seq=3 ttl=56 time=10.3 ms

你可以先更新,然后再来处理。

比如:

yum upgrade