rustup: Can't update to stable 1.35 (Windows + McAffee/Symantec)

Problem rustup update stable fails on Windows 7 laptop with this kind of errors:

λ  rustup update stable
info: syncing channel updates for 'stable-x86_64-pc-windows-msvc'
info: latest update on 2019-05-23, rust version 1.35.0 (3c235d560 2019-05-20)
info: downloading component 'rustc'
info: downloading component 'rust-std'
info: downloading component 'cargo'
info: downloading component 'rust-docs'
info: downloading component 'rust-std' for 'i686-pc-windows-msvc'
info: downloading component 'rust-analysis'
info: downloading component 'rust-src'
info: downloading component 'rls'
info: downloading component 'rustfmt'
info: downloading component 'clippy'
info: removing component 'rustc'
info: removing component 'rust-std'
info: removing component 'cargo'
info: removing component 'rust-docs'
info: removing component 'rust-std' for 'i686-pc-windows-msvc'
info: removing component 'rust-analysis'
info: removing component 'rust-src'
info: removing component 'rls'
info: removing component 'rustfmt'
info: removing component 'clippy'
info: installing component 'rustc'
 60.0 MiB /  60.0 MiB (100 %)  13.9 MiB/s in 14s ETA:  0s
info: installing component 'rust-std'
 53.1 MiB /  53.1 MiB (100 %)  12.9 MiB/s in  4s ETA:  0s
info: installing component 'cargo'
info: installing component 'rust-docs'
 10.3 MiB /  10.3 MiB (100 %) 401.6 KiB/s in  1m 52s ETA:  0s
info: rolling back changes
error: could not rename component file from 'C:\Users\Geobomatic\.rustup\tmp\wxp7x5fu66ro7uib_dir\bk' to 'C:\Users\Geobomatic\.rustup\toolchains\stable-x86_64-pc-windows-msvc\b
in'
error: could not rename component file from 'C:\Users\Geobomatic\.rustup\tmp\87cu99tuet1_8jof_dir\bk' to 'C:\Users\Geobomatic\.rustup\toolchains\stable-x86_64-pc-windows-msvc\s
hare'
error: could not rename component file from 'C:\Users\Geobomatic\.rustup\tmp\njl5zjh1vv3u_f_7_dir\bk' to 'C:\Users\Geobomatic\.rustup\toolchains\stable-x86_64-pc-windows-msvc\s
hare/doc'
error: could not rename component file from 'C:\Users\Geobomatic\.rustup\tmp\a3v9c1_ge4tpn6v3_dir\bk' to 'C:\Users\Geobomatic\.rustup\toolchains\stable-x86_64-pc-windows-msvc\l
ib/rustlib/x86_64-pc-windows-msvc'
error: could not rename component file from 'C:\Users\Geobomatic\.rustup\tmp\uy_fswm9q7qled_a_dir\bk' to 'C:\Users\Geobomatic\.rustup\toolchains\stable-x86_64-pc-windows-msvc\s
hare/doc/rust'
error: could not rename component file from 'C:\Users\Geobomatic\.rustup\tmp\yxll7wcaprlw_mik_dir\bk' to 'C:\Users\Geobomatic\.rustup\toolchains\stable-x86_64-pc-windows-msvc\e
tc'
error: could not rename component file from 'C:\Users\Geobomatic\.rustup\tmp\9gl9lc_8pixiiqfg_dir\bk' to 'C:\Users\Geobomatic\.rustup\toolchains\stable-x86_64-pc-windows-msvc\e
tc/bash_completion.d'
error: could not rename component file from 'C:\Users\Geobomatic\.rustup\tmp\6t7busnax3m2avbn_dir\bk' to 'C:\Users\Geobomatic\.rustup\toolchains\stable-x86_64-pc-windows-msvc\s
hare/doc/cargo'
error: could not rename component file from 'C:\Users\Geobomatic\.rustup\tmp\gc1cknvnskm_ezk0_dir\bk' to 'C:\Users\Geobomatic\.rustup\toolchains\stable-x86_64-pc-windows-msvc\s
hare/man'
error: could not rename component file from 'C:\Users\Geobomatic\.rustup\tmp\uflb3gpv_u26533g_dir\bk' to 'C:\Users\Geobomatic\.rustup\toolchains\stable-x86_64-pc-windows-msvc\s
hare/man/man1'
error: could not rename component file from 'C:\Users\Geobomatic\.rustup\tmp\73ibcu537omueytr_dir\bk' to 'C:\Users\Geobomatic\.rustup\toolchains\stable-x86_64-pc-windows-msvc\s
hare/zsh'
error: could not rename component file from 'C:\Users\Geobomatic\.rustup\tmp\ya9cygapnd82_h1o_dir\bk' to 'C:\Users\Geobomatic\.rustup\toolchains\stable-x86_64-pc-windows-msvc\s
hare/zsh/site-functions'
error: could not rename component file from 'C:\Users\Geobomatic\.rustup\tmp\i18s9gd8apyvbyxy_dir\bk' to 'C:\Users\Geobomatic\.rustup\toolchains\stable-x86_64-pc-windows-msvc\l
ib/rustlib/x86_64-pc-windows-msvc/lib'
error: could not rename component file from 'C:\Users\Geobomatic\.rustup\tmp\d5iyjok_t9ii2dy__dir\bk' to 'C:\Users\Geobomatic\.rustup\toolchains\stable-x86_64-pc-windows-msvc\l
ib/rustlib/etc'
error: could not rename component file from 'C:\Users\Geobomatic\.rustup\tmp\idx95puxu1rf43da_dir\bk' to 'C:\Users\Geobomatic\.rustup\toolchains\stable-x86_64-pc-windows-msvc\l
ib/rustlib/x86_64-pc-windows-msvc/bin'
error: could not rename component file from 'C:\Users\Geobomatic\.rustup\tmp\29v99sp5j0d5_ik0_dir\bk' to 'C:\Users\Geobomatic\.rustup\toolchains\stable-x86_64-pc-windows-msvc\l
ib/rustlib/x86_64-pc-windows-msvc/codegen-backends'
error: could not rename component file from 'C:\Users\Geobomatic\.rustup\tmp\zb5dkerufltfrz7z_dir\rust-docs\share/doc/rust/html' to 'C:\Users\Geobomatic\.rustup\toolchains\stab
le-x86_64-pc-windows-msvc\share/doc/rust/html'
info: caused by: Access is denied. (os error 5)

Steps

  1. run rustup update stable

Notes This laptop is crap (corporate machine) and has McAffee anti virus + disk encryption installed.

With previous rustup, it was slow but it worked.

Output of rustup --version: rustup 1.18.3 (435397f48 2019-05-22) Output of rustup show: Default host: x86_64-pc-windows-msvc

installed toolchains

stable-i686-pc-windows-msvc stable-x86_64-pc-windows-msvc (default) nightly-x86_64-pc-windows-msvc

installed targets for active toolchain

i686-pc-windows-msvc x86_64-pc-windows-msvc

active toolchain

stable-x86_64-pc-windows-msvc (default) rustc 1.34.2 (6c2484dc3 2019-05-13)

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Comments: 24 (10 by maintainers)

Commits related to this issue

Most upvoted comments

I’ve put a release build of rustup with a possible fix for this at https://s3-ap-southeast-2.amazonaws.com/rbtcollins-experiments/rustup/rustup.exe It should have md5 hash 6fb8c3b34904b26f8e2771bc18185435

If anyone is still experiencing this, please try downloading that build and running it (e.g. .\rustup.exe toolchain update stable). It has a retry and backoff mechanism added around the failing rename.

We cannot merge that until https://github.com/jimmycuadra/retry/pull/20 goes through review/fixup/merge/release, so this will be a workaround for a bit.