rust同步频道更新“每晚---(阅读rustc版本时出错)”时出错

flmtquvp  于 2023-03-23  发布在  其他
关注(0)|答案(3)|浏览(182)

我有错误与自动完成,所以我决定再次安装一切,但这有这个错误时做:

rustup update nightly

信息:正在同步“nightly-x86_64-unknown-linux-gnu”的频道更新
nightly-x86_64-未知-linux-gnu未更改-(阅读rustc版本时出错)
在rust rustc 1.17.0中

ktca8awb

ktca8awb1#

执行以下操作时:

->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 unchanged - rustc 1.19.0-nightly (d3abc80b3 2017-05-09)

代替

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

然后我执行update nightly,因为它可能已损坏,也可能没有损坏,这是正常的,也许它会工作

->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)版本的情况下工作。

a1o7rhls

a1o7rhls2#

rustup update之后,我得到:

stable-x86_64-unknown-linux-gnu unchanged - (error reading rustc version)
   nightly-x86_64-unknown-linux-gnu updated - rustc 1.19.0-nightly (978d2cfee 2017-05-10)

在那之后,我试着:rustup default stable得到:

stable-x86_64-unknown-linux-gnu unchanged - rustc 1.17.0 (56124baa9 2017-04-24)

如果我再试一次rustup update,我会得到:

stable-x86_64-unknown-linux-gnu unchanged - rustc 1.17.0 (56124baa9 2017-04-24)
  nightly-x86_64-unknown-linux-gnu unchanged - rustc 1.19.0-nightly (978d2cfee 2017-05-10)

看来是固定的。

46qrfjad

46qrfjad3#

解决方案很容易,就像喝水一样。只要确保你安装生 rust 的地方,每晚保持和任何与它相关的文件在同一位置,我的工作时,我这样做。

相关问题