Curl错误(56):从对端接收数据时失败

Curl错误(56):从对端接收数据时失败

现在我想像这样更新我的操作系统:

dnf udpate

但显示此错误:

Total download size: 69 M
Is this ok [y/N]: y
Downloading Packages:

    The downloaded packages were saved in cache until the next successful transaction.
    You can remove cached packages by executing 'dnf clean packages'.
    Error: Error downloading packages:
      Curl error (56): Failure when receiving data from the peer for http://mirrorlist.centos.org/?release=7&arch=x86_64&repo=os&infra=$infra [Recv failure: Connection reset by peer]

当我使用以下命令 ping 域时:

[root@izbp19pke6x0v6ruecuy1yz .acme.sh]# ping mirrorlist.centos.org
PING mirrorlist.centos.org (147.75.69.225) 56(84) bytes of data.
64 bytes from packet04.centos.org (147.75.69.225): icmp_seq=1 ttl=47 time=259 ms
64 bytes from packet04.centos.org (147.75.69.225): icmp_seq=2 ttl=47 time=259 ms
64 bytes from packet04.centos.org (147.75.69.225): icmp_seq=3 ttl=47 time=259 ms
^C
--- mirrorlist.centos.org ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2001ms
rtt min/avg/max/mdev = 259.591/259.672/259.786/0.594 ms

ping 告诉我可以访问的域。为什么卷曲会告诉这个错误?我正在从互联网上搜索,但没有人谈论这个问题。我应该怎么做才能避免这个错误?

相关内容