rust版本更新错误记录:Os { code: 5, kind: PermissionDenied }

使用 rustup update 更新 rust 版本时遇到错误:

info: cleaning up downloads & tmp directories
thread ‘main’ panicked at ‘Unable to clean up C:\Users\GrapeX.rustup\tmp: Os { code: 5, kind: PermissionDenied, message: “拒绝访问。” }’, src\utils\utils.rs:650:13
stack backtrace:
note: Some details are omitted, run with RUST_BACKTRACE=full for a verbose backtrace.

tmp无法清除,目前没有正在运行的rust项目,应当是有其它需要rust的进程还在活动,经检查 vscode 没关,rust-analyzer 还在活动,停止插件或关闭vscode即可解决。

猜你喜欢

转载自blog.csdn.net/m0_51810668/article/details/131708061