Install and update rust
There are many tutorials, so I won’t describe them in detail. A few typical tutorials are given:
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
If you have network problems, refer to the following tutorials:
issue
If the following problems are reported during installation curl: (23) Failure writing output to destination
, the details are as follows
curl: (23) Failure writing output to destination
rustup: command failed: downloader https://mirrors.ustc.edu.cn/rust-static/rustup/dist/x86_64-unknown-linux-gnu/rustup-init /tmp/tmp.NYHsHHrYc1/rustup-init x86_64-unknown-linux-gnu
- Make sure your curl is installed with snap:
sudo snap list | grep curl
- If yes, uninstall:
sudo snap remove curl
- Then reinstall with apt:
sudo apt install curl
- Finally, re-execute the rust installation command
Reference Rustup install fails on ubuntu 20.10
Common commands
#查看当前安装的工具链
rustup show
#更新当前的工具链
rustup update
#卸载rust
rustup self uninstall