You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh --> ❌ error: could not download file from ... operation timed out: operation timed out
warning: spurious network error (3 tries remaining): [28] Timeout was reached (failed to download any data for `ahash v0.8.3` within 30s)
warning: spurious network error (3 tries remaining): [28] Timeout was reached (download of `allocator-api2 v0.2.16` failed to transfer more than 10 bytes in 30s)
warning: spurious network error (3 tries remaining): [28] Timeout was reached (failed to download any data for `ash v0.37.3+1.3.251` within 30s)
warning: spurious network error (3 tries remaining): [28] Timeout was reached (download of `gpu-alloc v0.6.0` failed to transfer more than 10 bytes in 30s)
This seems to be an issue with WSL microsoft/WSL#6416, so not related to rust.
Problem
I'm facing the same issue as described here: #1328 #2929
My setup: WSL2 (Ubuntu), no proxy, no VPN, etc.
Steps
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
Possible Solution(s)
This fixed it for me: #1328 (comment)
$ curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
--> ❌ error: could not download file from ... operation timed out: operation timed outPS curl https://sh.rustup.rs
--> ✅ works$ curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
--> ❌ error: could not download file from 'https://static.rust-lang.org/dist/channel-rust-stable.toml.sha256' to '/home/pepper/.rustup/tmp/kilcw5u__cqm0aow_file': failed to make network request: error sending request for url (https://static.rust-lang.org/dist/channel-rust-stable.toml.sha256): operation timed out: operation timed outPS curl https://static.rust-lang.org/dist/channel-rust-stable.toml.sha256
--> ✅ works$ curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
--> ✅ works: "Rust is installed now. Great!"Notes
I followed this guide: https://www.rust-lang.org/learn/get-started
Rustup version
n/a
Installed toolchains
n/a
The text was updated successfully, but these errors were encountered: