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 error: detected conflict #3997

Open
Donald2010 opened this issue Aug 19, 2024 · 2 comments
Open

rustup update error: detected conflict #3997

Donald2010 opened this issue Aug 19, 2024 · 2 comments

Comments

@Donald2010
Copy link

I run the commands
PS E:\dev> rustc --version
rustc 1.74.1 (a28077b28 2023-12-04)
PS E:\dev> cargo --version
cargo 1.74.1 (ecb9851af 2023-10-18)
PS E:\dev> rustup update

after download, it prompts:

nfo: installing component 'rust-std' for 'i686-pc-windows-gnu'
 22.3 MiB /  22.3 MiB (100 %)  12.8 MiB/s in  2s ETA:  0s
info: installing component 'rust-std' for 'i686-pc-windows-msvc'
 18.1 MiB /  18.1 MiB (100 %)  12.4 MiB/s in  1s ETA:  0s
info: installing component 'rust-src'
info: rolling back changes
error: failed to install component: 'rust-src', detected conflict: 'lib/rustlib\manifest-rust-src'
info: checking for self-update

  stable-x86_64-pc-windows-gnu update failed - rustc 1.74.1 (a28077b28 2023-12-04)

info: cleaning up downloads & tmp directories.

what should I do to update ?

@djc
Copy link
Contributor

djc commented Aug 19, 2024

So this is basically saying that something already exists at the path that it's trying to install the new toolchain's rust-src component too. Perhaps you (inadvertently) installed a newer toolchain already through some other method? What does rustup toolchain list -v say?

@Donald2010
Copy link
Author

PS E:\dev> rustup toolchain list -v
stable-x86_64-pc-windows-gnu (default) C:\Users\My\.rustup\toolchains\stable-x86_64-pc-windows-gnu

I installed Rust quite a time ago, and can't remember clearly, but maybe it has something todo with MSYS2 installed earlier ?

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

2 participants