Could not resolve host: sh.rustup.rs

rustup: command failed: downloader https://static.rust-lang.org/rustup/dist/x86_64-unknown-linux-gnu/rustup-init /tmp/tmp.rXHTa6o4TC/rustup-init x86_64-unknown-linux-gnu
root@andywang-System-Product-Name:/home/andywang# curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
curl: (6) Could not resolve host: sh.rustup.rs

sh.rustup.rs resolves fine for me. It looks like a problem with your Internet access.

ping sh.rustup.rs
PING dks7yomi95k2d.cloudfront.net (13.224.225.23): 56 data bytes
64 bytes from 13.224.225.23: icmp_seq=0 ttl=230 time=18.799 ms

Try adding --resolve sh.rustup.rs:443:13.224.225.23 to curl arguments (before |)

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.