Curlエラー(56):ピアからデータを受信中に失敗しました。

Curlエラー(56):ピアからデータを受信中に失敗しました。

では、次のようにOSを更新したいと思います。

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はどのドメインにアクセスできるかを教えてくれます。カールはなぜこのようなエラーを言うのですか?インターネットで検索していますが、誰もこの問題について話していません。このエラーを回避するにはどうすればよいですか?

ベストアンサー1

おすすめ記事