Rustup "updates" nightly by apparently deleting rustc.
Another user on IRC reported a similar error "(toolchain not installed)" instead of "(rustc does not exist)".
$ rustup update
info: syncing channel updates for 'stable-x86_64-apple-darwin'
info: syncing channel updates for 'beta-x86_64-apple-darwin'
info: syncing channel updates for 'nightly-x86_64-apple-darwin'
info: latest update on 2017-11-30, rust version 1.24.0-nightly (0a2e9ade8 2017-11-29)
info: removing component 'rustc'
info: removing component 'rust-std'
info: removing component 'cargo'
info: removing component 'rust-docs'
info: removing component 'rust-analysis'
info: checking for self-updates
stable-x86_64-apple-darwin unchanged - rustc 1.22.1 (05e2e1c41 2017-11-22)
beta-x86_64-apple-darwin unchanged - rustc 1.23.0-beta.1 (082b0ff02 2017-11-21)
nightly-x86_64-apple-darwin updated - (rustc does not exist)
durska:xxx alex$ rustc +nightly -vV
error: toolchain 'nightly-x86_64-apple-darwin' does not have the binary `rustc`
durska:xxx alex$ rustup update
info: syncing channel updates for 'stable-x86_64-apple-darwin'
info: syncing channel updates for 'beta-x86_64-apple-darwin'
info: syncing channel updates for 'nightly-x86_64-apple-darwin'
info: checking for self-updates
stable-x86_64-apple-darwin unchanged - rustc 1.22.1 (05e2e1c41 2017-11-22)
beta-x86_64-apple-darwin unchanged - rustc 1.23.0-beta.1 (082b0ff02 2017-11-21)
nightly-x86_64-apple-darwin unchanged - (rustc does not exist)
durska:xxx alex$
Is this related to #46360 @kennytm? (If so I assume the nightlies will just reappear tomorrow?)
More verbose output:
$ rustup -v install nightly
verbose: read metadata version: '12'
verbose: installing toolchain 'nightly-x86_64-apple-darwin'
verbose: toolchain directory: '$HOME/.rustup/toolchains/nightly-x86_64-apple-darwin'
info: syncing channel updates for 'nightly-x86_64-apple-darwin'
verbose: creating temp file: $HOME/.rustup/tmp/yr3e2ixwktwo4zjk_file
verbose: downloading file from: 'https://static.rust-lang.org/dist/channel-rust-nightly.toml.sha256'
verbose: downloading with curl
verbose: deleted temp file: $HOME.rustup/tmp/yr3e2ixwktwo4zjk_file
verbose: no update hash at: '$HOME/.rustup/update-hashes/nightly-x86_64-apple-darwin'
verbose: creating temp file: $HOME.rustup/tmp/za2zedzj74xrw5pd_file.toml
verbose: downloading file from: 'https://static.rust-lang.org/dist/channel-rust-nightly.toml'
verbose: downloading with curl
verbose: checksum passed
verbose: deleted temp file: $HOME/.rustup/tmp/za2zedzj74xrw5pd_file.toml
info: latest update on 2017-11-30, rust version 1.24.0-nightly (0a2e9ade8 2017-11-29)
verbose: toolchain is already up to date
nightly-x86_64-apple-darwin unchanged - (toolchain not installed)`
@durka Yes this should reappear tomorrow... sorry for the mess 😓
This should happen rarely, but I think rustup should refuse to upgrade if the rustc tarball cannot be downloaded.
download yesterdays nightly:
rustup install nightly-2017-11-29
for anyone with this problem.
edit: i also had to mv nightly-2017-11-29-x86_64-apple-darwin nightly-x86_64-apple-darwin
to get cargo to install anything requiring nightly.
This is causing travis failures as well, incidentally
One thing I've wanted with rustup is something like rustup rollback
nightly 2017-11-29
i.e. "update" nightly to some other date without
changing the name, so +nightly
and overrides keep working.
(edit: turns out this is just done by
$ rustup uninstall nightly
$ mv ~/.rustup/toolchains/nightly-{2017-11-29-,}x86_64-apple-darwin/
)
On Nov 30, 2017 10:24, "Steve Klabnik" notifications@github.com wrote:
This is causing travis failures as well, incidentally
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/rust-lang/rust/issues/46391#issuecomment-348220799,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAC3n9cYSRhk7tx6-XUEsPwLKMM8LPKNks5s7si7gaJpZM4QwH9-
.
The macOS nightlies are now available on 2017-12-01
(version: rustc 1.24.0-nightly (23032d0af 2017-11-30)
). Closing.
did this tomorrow will be ok?
nightly-x86_64-apple-darwin unchanged - (toolchain not installed)
I did those below to solve this problem:
rustup self uninstall
curl https://sh.rustup.rs -sSf | sh
, but not use the default option, select 2 for set customize installation, and set the toolchain with nightly
.Current installation options:
default host triple: x86_64-apple-darwin
default toolchain: nightly
modify PATH variable: yes
1) Proceed with installation (default)
2) Customize installation
3) Cancel installation
3.after nightly rust installed, exec rustup install stable
to install stable rust.
This appears to have happened again tonight? https://travis-ci.org/oconnor663/bao/jobs/449212753
Yep, I'm seeing this as well.
And now it's fixed again for me.
I think this is happening for beta too?
$ rustup -v install beta
verbose: read metadata version: '12'
verbose: installing toolchain 'beta-x86_64-apple-darwin'
verbose: toolchain directory: '/Users/john/.rustup/toolchains/beta-x86_64-apple-darwin'
info: syncing channel updates for 'beta-x86_64-apple-darwin'
verbose: creating temp file: /Users/john/.rustup/tmp/ivcjc5f4zeycu6zv_file
verbose: downloading file from: 'https://static.rust-lang.org/dist/channel-rust-beta.toml.sha256'
verbose: downloading with curl
verbose: deleted temp file: /Users/john/.rustup/tmp/ivcjc5f4zeycu6zv_file
verbose: no update hash at: '/Users/john/.rustup/update-hashes/beta-x86_64-apple-darwin'
verbose: creating temp file: /Users/john/.rustup/tmp/y0a8pmfard912p24_file.toml
verbose: downloading file from: 'https://static.rust-lang.org/dist/channel-rust-beta.toml'
verbose: downloading with curl
verbose: checksum passed
verbose: deleted temp file: /Users/john/.rustup/tmp/y0a8pmfard912p24_file.toml
info: latest update on 2018-11-09, rust version 1.31.0-beta.5 (bf00632e3 2018-11-08)
verbose: toolchain is already up to date
beta-x86_64-apple-darwin unchanged - (toolchain not installed)
did this tomorrow will be ok?
nightly-x86_64-apple-darwin unchanged - (toolchain not installed)
I did those below to solve this problem:
- uninstall the old stable rust by exec
rustup self uninstall
2.reinstall rust by execcurl https://sh.rustup.rs -sSf | sh
, but not use the default option, select 2 for set customize installation, and set the toolchain withnightly
.Current installation options: default host triple: x86_64-apple-darwin default toolchain: nightly modify PATH variable: yes 1) Proceed with installation (default) 2) Customize installation 3) Cancel installation
3.after nightly rust installed, exec
rustup install stable
to install stable rust.
Great! It worked for me, thanks!
Most helpful comment
download yesterdays nightly:
rustup install nightly-2017-11-29
for anyone with this problem.
edit: i also had to
mv nightly-2017-11-29-x86_64-apple-darwin nightly-x86_64-apple-darwin
to get cargo to install anything requiring nightly.