Skip to content

Fail to update or install after uninstall on Linux #1592

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

Closed
ncihnegn opened this issue Dec 25, 2018 · 4 comments
Closed

Fail to update or install after uninstall on Linux #1592

ncihnegn opened this issue Dec 25, 2018 · 4 comments

Comments

@ncihnegn
Copy link

info: syncing channel updates for 'nightly-x86_64-unknown-linux-gnu'
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-unknown-linux-gnu', detected conflict: '"lib/rustlib/x86_64-unknown-linux-gnu/lib/libLLVM-8svn.so"'

@daubaris
Copy link

daubaris commented Dec 25, 2018

Can reproduce. While investigating further it seems that it tries to rename files (directories?) when there are no files in tmp folder.

error: could not rename component file from '~/.rustup/tmp/2zeb7e3cai7jyb70_dir/bk' to ~/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/share/doc'
error: could not rename component file from '~/.rustup/tmp/zrv312f0fx9o1pse_dir/bk' to '~/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/share/man'
error: could not rename component file from ~/.rustup/tmp/7hu9xs_6dmn72_ln_dir/bk' to ~/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu'

ls -a ~/.rustup/tmp shows an empty folder

Not quite sure if they are added only during the update.

@jbg
Copy link

jbg commented Dec 25, 2018

This just started happening on a CI setup of mine. Last successful build was 2018-12-24 16:23 UTC.

debian:latest docker image, and then:

curl https://sh.rustup.rs -sSf -o /tmp/rustup-init.sh
sh /tmp/rustup-init.sh -y --default-toolchain nightly

fails with:

Step #0: info: latest update on 2018-12-25, rust version 1.33.0-nightly (f960f377f 2018-12-24)
Step #0: info: downloading component 'rustc'
Step #0: info: downloading component 'rust-std'
Step #0: info: downloading component 'cargo'
Step #0: info: downloading component 'rust-docs'
Step #0: info: installing component 'rustc'
Step #0: info: installing component 'rust-std'
Step #0: info: rolling back changes
Step #0: error: failed to install component: 'rust-std-x86_64-unknown-linux-gnu', detected conflict: '"lib/rustlib/x86_64-unknown-linux-gnu/lib/libLLVM-8svn.so"'

@jbg
Copy link

jbg commented Dec 25, 2018

appears to be a duplicate of #1590

@matthiaskrgr
Copy link
Member

I think this is a duplicate of rust-lang/rust#57111 which has been addressed.

@kinnison kinnison closed this as completed Apr 3, 2019
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

5 participants