admin管理员组

文章数量:1635684

安装及更新rust

教程很多,不详细讲述了,给出几个典型的教程:

  • 官方
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh

如果有网络问题,参考下面几个教程:

  • rust 使用国内镜像,快速安装方法
  • linux 安装 rust-lang
  • Linux安装Rust

issue

如果安装时出现下面的问题curl: (23) Failure writing output to destination报错,具体如下

curl: (23) Failure writing output to destination
rustup: command failed: downloader https://mirrors.ustc.edu/rust-static/rustup/dist/x86_64-unknown-linux-gnu/rustup-init /tmp/tmp.NYHsHHrYc1/rustup-init x86_64-unknown-linux-gnu
  • 确认一下你的curl是不是用snap安装的:
sudo snap list | grep curl
  • 如果是,卸载:
sudo snap remove curl
  • 然后用apt重新安装:
sudo apt install curl
  • 最后重新执行rust的安装命令既可

参考自Rustup install fails on ubuntu 20.10

常用命令

#查看当前安装的工具链
rustup show

#更新当前的工具链
rustup update

#卸载rust
rustup self uninstall

本文标签: 错误curlUbuntuRustoutput