Skip to content

Failed to Update Stable Toolchain #5030

Closed as duplicate
Closed as duplicate

Description

@LambdaAlpha

Verification

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.

  1. 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)
  1. 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

  1. rami3l commented on Aug 23, 2026

    @rami3l
    Member

    @LambdaAlpha Thanks for the report! This is a known issue that I have been actively working on. Please stay tuned!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions