Skip to content

rustup self update does not work #46945

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
elszben opened this issue Dec 22, 2017 · 10 comments
Closed

rustup self update does not work #46945

elszben opened this issue Dec 22, 2017 · 10 comments

Comments

@elszben
Copy link

elszben commented Dec 22, 2017

rustup self update does not work anymore. I've tried to remove everything and reinstall everything rust related and the same thing happens. No idea what caused it.

C:\Users\laci\Downloads>rustup self update
info: checking for self-updates
error: could not create link from 'C:\Users\laci.cargo\bin\rustup.exe' to 'C:\Users\laci.cargo\bin\rustc.exe'
info: backtrace:

stack backtrace:
0: 0x634c34 -
1: 0x5919db -
2: 0x591a66 -
3: 0x57026e -
4: 0x56ff51 -
5: 0x42eec9 -
6: 0x420ae3 -
7: 0x439330 -
8: 0x438aa5 -
9: 0x9190fb -
10: 0x9164ca -
11: 0x43d72c -
12: 0x4013e3 -
13: 0x75b57c04 - BaseThreadInitThunk
14: 0x77b5ad2f - RtlInitializeExceptionChain

C:\Users\laci\Downloads>

@kennytm
Copy link
Member

kennytm commented Dec 22, 2017

Hi, what Windows version are you using?

(BTW rustup issues are better filed at https://github.com/rust-lang-nursery/rustup.rs/issues)

@elszben
Copy link
Author

elszben commented Dec 23, 2017

I'm using Windows 8.1.

Sorry about opening the issue here.

@DustinByfuglien
Copy link

Confirm.
I have this problem in Windows 7.

@meztez
Copy link

meztez commented Dec 23, 2017

For some reason, rustup isnt able to remove the file already in the folder before doing the hardlink. I got it working by deleting them before running the self update. It gave link errors and a warning about rustfmt.

pub fn hardlink(src: &Path, dest: &Path) -> io::Result<()> {
let _ = fs::remove_file(dest); // this part fails
fs::hard_link(src, dest)
}

@Cristian-Malinescu
Copy link

I have same problem in Windows 10.

@joce
Copy link

joce commented Dec 23, 2017

@kennytm Should the issue be duplicated (link? ported over? (I'm unfamiliar with GH issue system)) to rustup or will it be taken care of here nonetheless?
(also yes, I have the same issue with Win10, Creator Update (version 1709))

@kennytm
Copy link
Member

kennytm commented Dec 23, 2017

@joce It should better be copy-and-pasted to the rustup repo.

@lamogui
Copy link

lamogui commented Dec 27, 2017

got this here on windows 10 using "rustup update"

@matklad
Copy link
Member

matklad commented Dec 27, 2017

Hit this on CI. Looks like one workaround is to downgrade rustup. Here's an older version:

https://static.rust-lang.org/rustup/archive/1.7.0/i686-pc-windows-gnu/rustup-init.exe

@kennytm
Copy link
Member

kennytm commented Dec 27, 2017

Closing in favor of rust-lang/rustup#1316. Please follow that issue instead, thanks!

@kennytm kennytm closed this as completed Dec 27, 2017
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

8 participants