解决Ubuntu下安装rust时出现的curl (23) Failure writing output to destination错误

安装及更新rust

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

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

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

issue

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

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
  • 确认一下你的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

猜你喜欢

转载自blog.csdn.net/lyh458/article/details/120263185
今日推荐