I'm not sure what's going on here, but it appears I can't update the nightly channel rls
~
❯ rustup update nightly
info: syncing channel updates for 'nightly-x86_64-unknown-linux-gnu'
info: latest update on 2017-12-10, rust version 1.24.0-nightly (6fa53b00e 2017-12-09)
info: downloading component 'rustc'
info: downloading component 'rust-std'
info: downloading component 'cargo'
info: downloading component 'rust-docs'
info: downloading component 'rust-std' for 'wasm32-unknown-unknown'
info: downloading component 'rls-preview'
info: downloading component 'rust-std' for 'asmjs-unknown-emscripten'
info: downloading component 'rust-std' for 'wasm32-unknown-emscripten'
info: downloading component 'rust-analysis'
info: downloading component 'rust-src'
info: removing component 'rustc'
info: removing component 'rust-std'
info: removing component 'cargo'
info: removing component 'rust-docs'
info: removing component 'rust-std' for 'wasm32-unknown-unknown'
info: removing component 'rls-preview'
warning: during uninstall component rls-preview-x86_64-unknown-linux-gnu was not found
info: removing component 'rust-std' for 'asmjs-unknown-emscripten'
warning: during uninstall component rust-std-asmjs-unknown-emscripten was not found
info: removing component 'rust-std' for 'wasm32-unknown-emscripten'
warning: during uninstall component rust-std-wasm32-unknown-emscripten was not found
info: removing component 'rust-analysis'
warning: during uninstall component rust-analysis-x86_64-unknown-linux-gnu was not found
info: removing component 'rust-src'
warning: during uninstall component rust-src was not found
info: installing component 'rustc'
info: installing component 'rust-std'
info: installing component 'cargo'
info: installing component 'rust-docs'
info: installing component 'rust-std' for 'wasm32-unknown-unknown'
info: installing component 'rls-preview'
info: rolling back changes
error: could not rename component directory from '/home/leshow/.rustup/tmp/hbfsmobors2os9yn_dir/bk' to '/home/leshow/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/wasm32-unknown-unknown'
error: could not rename component directory from '/home/leshow/.rustup/tmp/vh0htas8nm5nkz_8_dir/bk' to '/home/leshow/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/share/zsh'
error: could not rename component directory from '/home/leshow/.rustup/tmp/8p130ly86kelgxwc_dir/bk' to '/home/leshow/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/etc'
error: could not rename component directory from '/home/leshow/.rustup/tmp/kqdda_n17nu3wri3_dir/bk' to '/home/leshow/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/share/man'
error: failed to install component: 'rls-preview-x86_64-unknown-linux-gnu', detected conflict: '"share/doc/rls/LICENSE-MIT"'
Why is it removing my components? then trying to install things that depend on them?
I’ve just experienced a similar error.
Here is a few possibly interesting information:
macOS 10.13.4 (17E199)
~> uname -a
Darwin rocket.local 17.5.0 Darwin Kernel Version 17.5.0: Mon Mar 5 22:24:32 PST 2018; root:xnu-4570.51.1~1/RELEASE_X86_64 x86_64
md5-8561dfeac1c68bbab4998bfd2f3e9bcf
~> rustup --version
rustup 1.11.0 (e751ff9f8 2018-02-13)
md5-8561dfeac1c68bbab4998bfd2f3e9bcf
~> rustc —version
rustc 1.26.0-nightly (0ff9872b2 2018-02-28)
md5-8561dfeac1c68bbab4998bfd2f3e9bcf
~> rustup toolchain list
stable-x86_64-apple-darwin
nightly-x86_64-apple-darwin (default)
~> rustup target list
rustup target list - Pastebin.com
~> rustup --verbose update nightly
rustup update nightly - Pastebin.com
Is that any help? What should I do to update my nightly installation?
Thanks.
This is probably an issue with different policies for installing the RLS across versions of Rustup. Currently we don't issue a nightly if tools like RLS and Rustfmt are broken (which is currently true). Older Rustup might not be expecting that. You could wait and try again in a few days when we issue a new nightly. If there is still a problem , then try updating Rustup before the toolchains.
Hey nrc! Thanks for the follow-up. I’ll try again with the next nightly build.
I've just hit similar issue but on stable:
info: syncing channel updates for 'stable-x86_64-unknown-linux-gnu'
info: latest update on 2018-08-02, rust version 1.28.0 (9634041f0 2018-07-30)
info: downloading component 'rustc'
info: downloading component 'rust-std'
info: downloading component 'cargo'
info: downloading component 'rust-docs'
info: downloading component 'rust-src'
info: removing component 'rustc'
info: removing component 'rust-std'
info: removing component 'cargo'
info: removing component 'rust-docs'
info: removing component 'rust-src'
info: installing component 'rustc'
info: rolling back changes
error: could not rename component file from '/home/user/.rustup/tmp/j6k5f11r8aaev3mw_dir/bk' to '/home/user/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/share'
error: could not rename component file from '/home/user/.rustup/tmp/r8i9vppqexv21_0x_dir/bk' to '/home/user/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/share/doc'
error: could not rename component file from '/home/user/.rustup/tmp/dp3wgxia7pxt7ftr_dir/bk' to '/home/user/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/share/man'
error: could not rename component file from '/home/user/.rustup/tmp/od7tzy2vmag93nk1_dir/bk' to '/home/user/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu'
error: could not rename component file from '/home/user/.rustup/tmp/sz3g0tzw3if8m5q__dir/bk' to '/home/user/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/bin'
error: could not copy file from '/home/user/.rustup/tmp/3braa0uannzuuypm_dir/rustc/lib/rustlib/x86_64-unknown-linux-gnu/bin/lld' to '/home/user/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/bin/lld'
info: checking for self-updates
stable-x86_64-unknown-linux-gnu update failed - rustc 1.27.0 (3eda71b00 2018-06-19)
OS: QubesOS Debian template (version 9.5) kernel version 4.14.18-1.pvops.qubes.x86_64
$ rustup toolchain list
stable-x86_64-unknown-linux-gnu (default)
Any idea?
I had the same problem. And this is first hit on duckduckgo - so I link to real problem: "No space left on device"
Ah, thanks! Qubes only giving 2G of space to VMs is sometimes annoying...
I have just run into the same problem, solved it by first uninstalling nightly and then installing it again:
rustup toolchain uninstall nightly-x86_64-apple-darwin
rustup toolchain install nightly
@mirosval’s solution also works for stable-x86_64-apple-darwin:
rustup toolchain uninstall stable-x86_64-apple-darwin
rustup toolchain install stable-x86_64-apple-darwin
Most helpful comment
I have just run into the same problem, solved it by first uninstalling nightly and then installing it again:
rustup toolchain uninstall nightly-x86_64-apple-darwinrustup toolchain install nightly