admin管理员组文章数量:1635678
安装及更新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
版权声明:本文标题:解决Ubuntu下安装rust时出现的curl (23) Failure writing output to destination错误 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:https://m.elefans.com/dianzi/1729214573a1190271.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论