错误生锈同步通道更新'每晚---(错误读取rustc版本)'

时间:2017-05-10 21:39:33

标签: rust

我在自动完成方面遇到错误,所以我决定再次安装所有内容,但这样做时出现此错误:

id
  

info:同步'nightly-x86_64-unknown-linux-gnu'的频道更新

     

nightly-x86_64-unknown-linux-gnu不变 - (错误读取rustc   版本)

生锈锈病<1.1>

2 个答案:

答案 0 :(得分: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 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)

的情况下工作

答案 1 :(得分:0)

我得到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)

所以似乎是固定的。