rustup update detected conflict manifest

Created on 4 May 2018  ยท  7Comments  ยท  Source: rust-lang/rustup

โฏ rustup update
info: syncing channel updates for 'stable-x86_64-unknown-linux-gnu'
info: syncing channel updates for 'nightly-x86_64-unknown-linux-gnu'
info: latest update on 2018-05-04, rust version 1.27.0-nightly (e82261dfb 2018-05-03)
info: downloading component 'rustc'
info: downloading component 'rust-std'
info: downloading component 'cargo'
info: downloading component 'rust-docs'
info: downloading component 'rustfmt-preview'
info: downloading component 'rls-preview'
info: downloading component 'rust-std' for 'wasm32-unknown-unknown'
info: downloading component 'rust-src'
info: downloading component 'rust-analysis'
info: removing component 'rustc'
info: removing component 'rust-std'
warning: during uninstall component rust-std-x86_64-unknown-linux-gnu was not found
info: removing component 'cargo'
warning: during uninstall component cargo-x86_64-unknown-linux-gnu was not found
info: removing component 'rust-docs'
warning: during uninstall component rust-docs-x86_64-unknown-linux-gnu was not found
info: removing component 'rustfmt-preview'
warning: during uninstall component rustfmt-preview-x86_64-unknown-linux-gnu was not found
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 'wasm32-unknown-unknown'
warning: during uninstall component rust-std-wasm32-unknown-unknown was not found
info: removing component 'rust-src'
warning: during uninstall component rust-src was not found
info: removing component 'rust-analysis'
warning: during uninstall component rust-analysis-x86_64-unknown-linux-gnu was not found
info: installing component 'rustc'
info: installing component 'rust-std'
info: rolling back changes
error: failed to install component: 'rust-std-x86_64-unknown-linux-gnu', detected conflict: '"lib/rustlib/manifest-rust-std-x86_64-unknown-linux-gnu"'

       stable-x86_64-unknown-linux-gnu unchanged - rustc 1.25.0 (84203cac6 2018-03-25)
  nightly-x86_64-unknown-linux-gnu update failed - rustc 1.27.0-nightly (66363b288 2018-04-28)

rustup update usually works just fine. Willing to help to debug if anyone can point me in the right direction

Most helpful comment

@jamescostian I have resolved.

rm -rf ~/.cargo ~/.rustup
rustup uninstall stable && rustup update nightly && rustup update stable

All 7 comments

I am having a similar issue on macOS.

$ rustup update
info: syncing channel updates for 'stable-x86_64-apple-darwin'
info: syncing channel updates for 'nightly-x86_64-apple-darwin'
info: latest update on 2018-05-06, rust version 1.27.0-nightly (f9bfe840f 2018-05-05)
info: downloading component 'rustc'
info: downloading component 'rust-std'
info: downloading component 'cargo'
info: downloading component 'rust-docs'
info: downloading component 'rls-preview'
info: downloading component 'rust-src'
info: downloading component 'rust-analysis'
info: removing component 'rustc'
info: removing component 'rust-std'
info: removing component 'cargo'
info: removing component 'rust-docs'
warning: during uninstall component rust-docs-x86_64-apple-darwin was not found
info: removing component 'rls-preview'
warning: during uninstall component rls-preview-x86_64-apple-darwin was not found
info: removing component 'rust-src'
warning: during uninstall component rust-src was not found
info: removing component 'rust-analysis'
warning: during uninstall component rust-analysis-x86_64-apple-darwin was not found
info: installing component 'rustc'
info: installing component 'rust-std'
info: installing component 'cargo'
info: installing component 'rust-docs'
info: rolling back changes
error: could not rename component directory from '/Users/thill/.rustup/tmp/c0tjtc1izhxjgw6y_dir/bk' to '/Users/thill/.rustup/toolchains/nightly-x86_64-apple-darwin/share/zsh'
error: could not rename component directory from '/Users/thill/.rustup/tmp/50rhigzsa_s45wk4_dir/bk' to '/Users/thill/.rustup/toolchains/nightly-x86_64-apple-darwin/share/man'
error: could not rename component directory from '/Users/thill/.rustup/tmp/xyvzhzaxrvqq9ytn_dir/bk' to '/Users/thill/.rustup/toolchains/nightly-x86_64-apple-darwin/etc'
error: failed to install component: 'rust-docs-x86_64-apple-darwin', detected conflict: '"share/doc/rust/html"'
info: checking for self-updates

       stable-x86_64-apple-darwin unchanged - rustc 1.25.0 (84203cac6 2018-03-25)
  nightly-x86_64-apple-darwin update failed - rustc 1.27.0-nightly (79252ff4e 2018-04-29)

Tooling version info:

$ rustup --version
rustup 1.11.0 (e751ff9f8 2018-02-13)

$ rustc --version && rustc +nightly --version
rustc 1.25.0 (84203cac6 2018-03-25)
rustc 1.27.0-nightly (79252ff4e 2018-04-29)

$ cargo --version && cargo +nightly --version
cargo 0.26.0 (41480f5cc 2018-02-26)
cargo 1.27.0-nightly (0a1add2d8 2018-04-20)

Stable update seemed to go fine today, still got the conflict on nightly though with the manifest file:

error: failed to install component: 'rust-std-x86_64-unknown-linux-gnu', detected conflict: '"lib/rustlib/manifest-rust-std-x86_64-unknown-linux-gnu"

This is on an Arch machine with rustup installed from the regular community repo, not an AUR build.

uninstalling nightly and reinstalling it again seemed to work

@leshow Sorry, Uninstalling nightly still not work.

jiaruidembp:~ sonven$ rustup uninstall nightly
info: uninstalling toolchain 'nightly-x86_64-apple-darwin'
info: toolchain 'nightly-x86_64-apple-darwin' uninstalled
jiaruidembp:~ sonven$ rustup update nightly
info: syncing channel updates for 'nightly-x86_64-apple-darwin'
info: latest update on 2018-12-25, rust version 1.33.0-nightly (f960f377f 2018-12-24)
info: downloading component 'rustc'
info: downloading component 'rust-std'
info: downloading component 'cargo'
info: downloading component 'rust-docs'
info: installing component 'rustc'
info: installing component 'rust-std'
info: rolling back changes
error: failed to install component: 'rust-std-x86_64-apple-darwin', detected conflict: '"lib/rustlib/x86_64-apple-darwin/lib/libLLVM.dylib"'

I'm having the same issue as @jsix and have ran the same things (and received the same output). I also tried rustup self update and verified that there weren't any updates to rustup itself.

@jamescostian I have resolved.

rm -rf ~/.cargo ~/.rustup
rustup uninstall stable && rustup update nightly && rustup update stable

I got this today.

info: downloading component 'rust-std' for 'armv7-linux-androideabi'
info: installing component 'rust-std' for 'armv7-linux-androideabi'
info: using up to 500.0 MiB of RAM to unpack components
 18.1 MiB /  18.1 MiB (100 %)  11.7 MiB/s in  1s ETA:  0s
info: rolling back changes
error: failed to install component: 'rust-std-armv7-linux-androideabi', detected conflict: '"lib/rustlib/manifest-rust-std-armv7-linux-androideabi"'

Also fixed by rustup uninstall stable && rustup update stable.

Was this page helpful?
0 / 5 - 0 ratings