gpt4 book ai didi

rust - rust 同步 channel 更新错误 'nightly --- (error reading rustc version)'

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

我遇到了自动完成错误,所以我决定重新安装所有东西,但是在执行时出现了这个错误:

rustup update nightly

info: syncing channel updates for 'nightly-x86_64-unknown-linux-gnu'

nightly-x86_64-unknown-linux-gnu unchanged - (error reading rustc version)

在 rust rustc 1.17.0 中

最佳答案

做的时候:

->rustup override set nightly-x86_64-unknown-linux-gnu
info: using existing install for 'nightly-x86_64-unknown-linux-gnu'
info: override toolchain for '/home/' set to 'nightly-x86_64-unknown-linux-gnu'

nightly-x86_64-unknown-linux-gnu unchanged - rustc 1.19.0-nightly (d3abc80b3 2017-05-09)

现在能够识别:

  • nightly-x86_64-unknown-linux-gnu 不变 - rustc 1.19.0-nightly (d3abc80b3 2017-05-09)

代替

  • nightly-x86_64-unknown-linux-gnu unchanged -(读取 rustc 版本时出错)

然后我每晚更新,因为它可能已损坏,也可能没有,这是正常的,也许它会起作用

->rustup update nightly
info: syncing channel updates for 'nightly-x86_64-unknown-linux-gnu'

nightly-x86_64-unknown-linux-gnu unchanged - rustc 1.19.0-nightly (d3abc80b3 2017-05-09)

我做了一些测试,一开始没认出来 rustc 1.19.0-nightly (d3abc80b3 2017-05-09) 我不得不执行 2 次 ->rustup update nightly


根据正在寻找可以使用toolchain uninstall 但最后这个我无法确认:

->rustup toolchain uninstall nightly
info: uninstalling toolchain 'nightly-x86_64-unknown-linux-gnu'
info: toolchain 'nightly-x86_64-unknown-linux-gnu' uninstalled

->rustup self update

//..
->rustup update nightly
//..

注意:也许这个 (error reading rustc version) 真的不是任何严重的“错误”并且可以在不识别版本的情况下工作 rustc 1.19.0-nightly (d3abc80b3 2017-05- 09)

关于rust - rust 同步 channel 更新错误 'nightly --- (error reading rustc version)',我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43903157/

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