rustup
rustup copied to clipboard
Need better error when trying to install with low disk space
Problem
I tried to install Rust when disk space was low and got the following error:
error: component download failed for cargo-x86_64-unknown-linux-gnu: could not download file from 'https://static.rust-lang.org/dist/2022-01-20/cargo-1.58.1-x86_64-unknown-linux-gnu.tar.xz' to '/root/.rustup/downloads/1d3f01b973ea3de5174d0a48b50828cf913bafc223ecbf768a0293602cff0cdc.partial'
which led me look for networking problems.
I would expect the error to indicate that the download could not be done due to limited disk space.
Steps
- Use an x86-64 Linux
- Fill up your disk
- Run the Rust installer with default options
Possible Solution(s)
No response
Notes
No response
Rustup version
Rustup was not installed when the error happened, but now that I made some disk space and re-ran the installer, the version is reported as:
rustup 1.24.3 (ce5817a94 2021-05-31)
info: This is the version for the rustup toolchain manager, not the rustc compiler.
info: The currently active `rustc` version is `rustc 1.58.1 (db9d1b20b 2022-01-20)`
Installed toolchains
Default host: x86_64-unknown-linux-gnu
rustup home: /home/user/.rustup
stable-x86_64-unknown-linux-gnu (default)
rustc 1.58.1 (db9d1b20b 2022-01-20)
I agree we might be able to do better. If you, or anyone else, want to have a go at a patch, I'd be happy to help.