我试着跑
rustup update stable
我得到以下输出。
info: syncing channel updates for 'stable-x86_64-unknown-linux-gnu'
info: latest update on 2020-05-07, rust version 1.43.1 (8d69840ab 2020-05-04)
error: some components unavailable for download for channel stable: 'rust-std' for target 'i386-apple-ios', 'rust-std' for target 'armv7s-apple-ios', 'rust-std' for target 'armv7-apple-ios'
If you require these components, please install and use the latest successful build version,
which you can find at <https://rust-lang.github.io/rustup-components-history>.
After determining the correct date, install it with a command such as:
rustup toolchain install nightly-2018-12-27
Then you can use the toolchain with commands such as:
cargo +nightly-2018-12-27 build
虽然我可以使用安装最新的稳定工具链
rustup toolchain install stable-2020-05-07
这将创建一个单独的工具链。
rustup toolchain list
stable-2020-05-07-x86_64-unknown-linux-gnu (default)
stable-x86_64-unknown-linux-gnu
nightly-2020-05-07-x86_64-unknown-linux-gnu
我可以使用这个新的工具链作为默认工具链(就像我现在一样),但是前进会很痛苦,因为我不能只使用rustup update
.
运行rustup toolchain install stable
会产生相同的错误。
我怎样才能让稳定的 Rust 工具链通过 更新rustup update run
?