On a (stable) Debian Linux system, I previously installed 1.19 using the curl/rustup method given by the website. I just attempted to install 1.20, which did not appear to work, as evidenced by checking the compiler version after the install. I then removed the ~/.rustup directory and tried again. Now all is well. This appears to be an installer problem, unless I've missed or misinterpreted something. Complete log of what I did follows:
dca@giovanni:~$ rustc --version
rustc 1.19.0 (0ade33941 2017-07-17)
dca@giovanni:~$ curl https://sh.rustup.rs -sSf | sh
info: downloading installer
Welcome to Rust!
This will download and install the official compiler for the Rust programming
language, and its package manager, Cargo.
It will add the cargo, rustc, rustup and other commands to Cargo's bin
directory, located at:
/home/dca/.cargo/bin
This path will then be added to your PATH environment variable by modifying the
profile files located at:
/home/dca/.profile
/home/dca/.bash_profile
You can uninstall at any time with rustup self uninstall and these changes will
be reverted.
Current installation options:
default host triple: x86_64-unknown-linux-gnu
default toolchain: stable
modify PATH variable: yes
- Proceed with installation (default)
- Customize installation
- Cancel installation
1
info: updating existing rustup installation
Rust is installed now. Great!
To get started you need Cargo's bin directory ($HOME/.cargo/bin) in your PATH
environment variable. Next time you log in this will be done automatically.
To configure your current shell run source $HOME/.cargo/env
dca@giovanni:~$ rustc --version
rustc 1.19.0 (0ade33941 2017-07-17)
dca@giovanni:~$ rm -rf .rustup/
dca@giovanni:~$ curl https://sh.rustup.rs -sSf | sh
info: downloading installer
Welcome to Rust!
This will download and install the official compiler for the Rust programming
language, and its package manager, Cargo.
It will add the cargo, rustc, rustup and other commands to Cargo's bin
directory, located at:
/home/dca/.cargo/bin
This path will then be added to your PATH environment variable by modifying the
profile files located at:
/home/dca/.profile
/home/dca/.bash_profile
You can uninstall at any time with rustup self uninstall and these changes will
be reverted.
Current installation options:
default host triple: x86_64-unknown-linux-gnu
default toolchain: stable
modify PATH variable: yes
- Proceed with installation (default)
- Customize installation
- Cancel installation
1
info: syncing channel updates for 'stable-x86_64-unknown-linux-gnu'
info: latest update on 2017-08-31, rust version 1.20.0 (f3d6973f4 2017-08-27)
info: downloading component 'rustc'
38.3 MiB / 38.3 MiB (100 %) 3.3 MiB/s ETA: 0 s
info: downloading component 'rust-std'
57.9 MiB / 57.9 MiB (100 %) 3.2 MiB/s ETA: 0 s
info: downloading component 'cargo'
3.6 MiB / 3.6 MiB (100 %) 3.1 MiB/s ETA: 0 s
info: downloading component 'rust-docs'
3.6 MiB / 3.6 MiB (100 %) 3.4 MiB/s ETA: 0 s
info: installing component 'rustc'
info: installing component 'rust-std'
info: installing component 'cargo'
info: installing component 'rust-docs'
info: default toolchain set to 'stable'
stable installed - rustc 1.20.0 (f3d6973f4 2017-08-27)
Rust is installed now. Great!
To get started you need Cargo's bin directory ($HOME/.cargo/bin) in your PATH
environment variable. Next time you log in this will be done automatically.
To configure your current shell run source $HOME/.cargo/env
dca@giovanni:~$ rustc --version
rustc 1.20.0 (f3d6973f4 2017-08-27)
dca@giovanni:~$