rustup
rustup copied to clipboard
error: could not download file from 'https://static.rust-lang.org/dist/channel-rust-stable.toml.sha256' to [...]
Verification
- [x] I searched for recent similar issues at https://github.com/rust-lang/rustup/issues?q=is%3Aissue+is%3Aopen%2Cclosed and found no duplicates.
- [x] I am on the latest version of Rustup according to https://github.com/rust-lang/rustup/tags and am still able to reproduce my issue.
Problem
I'm trying to install on a corporate Windows 10 laptop using the current version of rustup-init.exe
which I've just downloaded.
I'm seeing this:
Welcome to Rust!
This will download and install the official compiler for the Rust
programming language, and its package manager, Cargo.
Rustup metadata and toolchains will be installed into the Rustup
home directory, located at:
C:\Users\my-user-id\.rustup
This can be modified with the RUSTUP_HOME environment variable.
The Cargo home directory is located at:
C:\Users\my-user-id\.cargo
This can be modified with the CARGO_HOME environment variable.
The cargo, rustc, rustup and other commands will be added to
Cargo's bin directory, located at:
C:\Users\my-user-id\.cargo\bin
This path will then be added to your PATH environment variable by
modifying the HKEY_CURRENT_USER/Environment/PATH registry key.
You can uninstall at any time with rustup self uninstall and
these changes will be reverted.
Current installation options:
default host triple: x86_64-pc-windows-msvc
default toolchain: stable (default)
profile: default
modify PATH variable: yes
1) Proceed with standard installation (default - just press enter)
2) Customize installation
3) Cancel installation
>1
info: profile set to 'default'
info: default host triple is x86_64-pc-windows-msvc
info: syncing channel updates for 'stable-x86_64-pc-windows-msvc'
error: could not download file from 'https://static.rust-lang.org/dist/channel-rust-stable.toml.sha256' to 'C:\Users\my-user-id\.rustup\tmp\8vozg73cf7ftx94w_file': failed to make network request: error sending request for url (https://static.rust-lang.org/dist/channel-rust-stable.toml.sha256): client error (Connect): dns error: No such host is known. (os error 11001): No such host is known. (os error 11001)
Press the Enter key to continue.
Steps
- Download
rustup-init.exe
to my Downloads folder. - Double-click
rustup-init.exe
to execute. - Select option
(1) Proceed with standard installation (default - just press enter)
When I do this, it returns the error within a second.
Possible Solution(s)
No response
Notes
No response
Rustup version
rustup-init 1.27.1 (54dd3d00f 2024-04-24)
Installed toolchains
N/a
OS version
Win10 22H2 (OS Build 19045.4894)