Repository navigation
Closed as duplicate
Labels
Description
Verification
- I searched for recent similar issues at https://github.com/rust-lang/rustup/issues?q=is%3Aissue and found no duplicates.
- I am on the latest version of Rustup according to https://github.com/rust-lang/rustup/tags and am still able to reproduce my issue.
Problem
rustup update failed to update the stable channel to 1.98.0. nightly channel is ok.
Steps
rustup update
Possible Solution(s)
rustup show installs the stable toolchain successfully.
Notes
Two types of errors randomly occured.
- Failed to rename a file in a removed tmp directory
rustc installing \ 67.87 MiB
debug: creating directory name="component" path=C:\Users\MI\.rustup\toolchains\stable-x86_64-pc-windows-msvc\lib\rustlib\etc
debug: creating directory name="component" path=C:\Users\MI\.rustup\toolchains\stable-x86_64-pc-windows-msvc\lib\rustlib\x86_64-pc-windows-msvc\bin\gcc-ld
info: rolling back changes
rustc installing / 67.87 MiB
debug: removing directory name="component" path=C:\Users\MI\.rustup\toolchains\stable-x86_64-pc-windows-msvc\share\doc\rust\html
rustc installed 67.87 MiB
debug: deleted temp directory path=C:\Users\MI\.rustup\tmp\gko0piqpmu33jd0w_dir
debug: deleted temp directory path=C:\Users\MI\.rustup\tmp\iizf36uvr5flzmmt_dir
debug: removing directory name="toolchain" path=C:\Users\MI\.rustup\toolchains\stable-x86_64-pc-windows-msvc
error: could not rename 'component' file from 'C:\Users\MI\.rustup\tmp\gko0piqpmu33jd0w_dir\rustc\lib\rustlib\x86_64-pc-windows-msvc\bin\gcc-ld\wasm-ld.exe' to 'C:\Users\MI\.rustup\toolchains\stable-x86_64-pc-windows-msvc\lib\rustlib\x86_64-pc-windows-msvc\bin\gcc-ld\wasm-ld.exe': 系统找不到指定的文件。 (os error 2)
Caused by:
系统找不到指定的文件。 (os error 2)
- failed to remove files in gcc-ld directory
error: could not remove 'component' file: 'C:\Users\MI\.rustup\toolchains\stable-x86_64-pc-windows-msvc\lib\rustlib\x86_64-pc-windows-msvc\bin\gcc-ld\ld.lld.exe'
error: could not rename 'component' file from 'C:\Users\MI\.rustup\tmp\cv0kjern_0qed34z_dir\bk' to 'C:\Users\MI\.rustup\toolchains\stable-x86_64-pc-windows-msvc\share': 目录不是空的。 (os error 145)
Rustup version
rustup 1.29.0 (28d1352db 2026-03-05)Installed toolchains
Default host: x86_64-pc-windows-msvc
rustup home: C:\Users\MI\.rustup
installed toolchains
--------------------
stable-x86_64-pc-windows-msvc (active, default)
nightly-x86_64-pc-windows-msvc
active toolchain
----------------
name: stable-x86_64-pc-windows-msvc
active because: it's the default toolchain
installed targets:
x86_64-pc-windows-msvc
(`rustup show` installs the stable toolchain successfully.)OS version
版本 Windows 10 专业版
版本号 22H2
安装日期 24/6/12
OS 内部版本 19045.6466
Activity
rami3l commentedon Aug 23, 2026
@LambdaAlpha Thanks for the report! This is a known issue that I have been actively working on. Please stay tuned!