Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rustup update detected conflict manifest #1408

Closed
leshow opened this issue May 4, 2018 · 10 comments
Closed

rustup update detected conflict manifest #1408

leshow opened this issue May 4, 2018 · 10 comments

Comments

@leshow
Copy link

leshow commented May 4, 2018

❯ 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

@phrohdoh
Copy link

phrohdoh commented May 6, 2018

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)

@leshow
Copy link
Author

leshow commented May 11, 2018

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.

@leshow
Copy link
Author

leshow commented May 17, 2018

uninstalling nightly and reinstalling it again seemed to work

@leshow leshow closed this as completed May 17, 2018
@ixre
Copy link

ixre commented Dec 25, 2018

@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"'

@jamescostian
Copy link

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.

@ixre
Copy link

ixre commented Dec 26, 2018

@jamescostian I have resolved.

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

@saurik
Copy link

saurik commented Dec 3, 2020

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.

@saurik
Copy link

saurik commented May 7, 2024

I just ran into this issue again today. Merely uninstalling and updating toolchains didn't seem to work.

$ rustup target add armv7-linux-androideabi
info: downloading component 'rust-std' for 'armv7-linux-androideabi'
info: installing component 'rust-std' for 'armv7-linux-androideabi'
 23.7 MiB /  23.7 MiB (100 %)  19.4 MiB/s in  1s ETA:  0s
info: rolling back changes 
error: failed to install component: 'rust-std-armv7-linux-androideabi', detected conflict: 'lib/rustlib/armv7-linux-androideabi/lib/libaddr2line-db7b73ce4b785bdf.rlib'

I finally got angry enough that I just deleted ~/.rustup and that dealt with the problem.

It also seems like livepeer ran into this same issue just a few months ago, and other people were still reporting this problem in 2018. This issue should not have been closed merely because "uninstalling nightly and reinstalling it again seemed to work" as that's just a workaround for the bug.

@saurik
Copy link

saurik commented May 7, 2024

Ah ha: I've found an actually-open bug for this issue! #2417 via #1723

@rami3l
Copy link
Member

rami3l commented May 7, 2024

Ah ha: I've found an actually-open bug for this issue! #2417 via #1723

@saurik 1 Thanks for reporting! #2417 is already on our radar. However, the list of Rustup maintainers has changed for quite a few times since 2018, and I'm still slowly picking up the lost context since 2023, so please bear with us 🙇‍♀️

Footnotes

  1. OT: Wow, it's really @saurik! Playing with jailbroken iOS and Cydia was literally my gateway drug to the IT business... Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants