Skip to content

Installer not working: "error: could not download file from" #3513

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
peppergrayxyz opened this issue Oct 18, 2023 · 1 comment
Closed

Installer not working: "error: could not download file from" #3513

peppergrayxyz opened this issue Oct 18, 2023 · 1 comment
Labels

Comments

@peppergrayxyz
Copy link

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)

  1. $ curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh --> ❌ error: could not download file from ... operation timed out: operation timed out

  2. PS curl https://sh.rustup.rs --> ✅ works

  3. $ 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 out

  4. PS curl https://static.rust-lang.org/dist/channel-rust-stable.toml.sha256 --> ✅ works

  5. $ 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
@peppergrayxyz
Copy link
Author

I also have issues with installing packages

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.

This fixed it for me: microsoft/WSL#7254 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant