gpt4 book ai didi

ubuntu - rustup 在下载过程中安装稳定错误

转载 作者:行者123 更新时间:2023-11-29 08:32:28 28 4
gpt4 key购买 nike

我使用命令安装 Rust:

$ curl -sSf https://static.rust-lang.org/rustup.sh | sh

当我运行时:

$ rustc main.rs

这出现了:

error: no default toolchain configured

所以我跑:

rustup install stable

然后:

info: downloading component 'rust-std'
23.2 MiB / 56.2 MiB ( 41 %) 67.2 KiB/s ETA: 503 s error: component download failed for rust-std-x86_64-unknown-linux-gnu
info: caused by: could not download file from 'https://static.rust-lang.org/dist/2018-07-10/rust-std-1.27.1-x86_64-unknown-linux-gnu.tar.xz' to '/home/kwebi/.rustup/downloads/d3b0d00357cfaecf85651bea6f1d72793a5a859b6b07e9613ba21285922d5d58.partial'
info: caused by: error during download
info: caused by: [56] Failure when receiving data from the peer (OpenSSL SSL_read: error:1408F119:SSL routines:SSL3_GET_RECORD:decryption failed or bad record mac, errno 0)

一开始我用follow安装rust,打印的错误信息和之前一样,有下载错误:

$ curl https://sh.rustup.rs -sSf | sh
curl: (56) OpenSSL SSL_read: SSL_ERROR_SYSCALL, errno 104
rustup: command failed: downloader https://static.rust-lang.org/rustup/dist/x86_64-unknown-linux-gnu/rustup-init /tmp/tmp.2EZ69sGKWR/rustup-init

我可以做些什么来当前和完整地安装 rust?

最佳答案

我已经解决了这个问题:

rustup update
rustup default stable
sudo apt-get install gcc

关于ubuntu - rustup 在下载过程中安装稳定错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51355650/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com