Skip to content

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

Closed

Description

@peppergrayxyz

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

Activity

  1. peppergrayxyz commented on Oct 18, 2023

    @peppergrayxyz
    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions