rustup: `rustup update` panic while cleaning cache
Problem
info: syncing channel updates for 'stable-x86_64-apple-darwin'
info: checking for self-updates
stable-x86_64-apple-darwin unchanged - rustc 1.56.1 (59eed8a2a 2021-11-01)
info: cleaning up downloads & tmp directories
thread 'main' panicked at 'Unable to clean up /Users/andrewsonin/.rustup/tmp: Os { code: 1, kind: PermissionDenied, message: "Operation not permitted" }', src/utils/utils.rs:642:13
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Steps
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | shrustup target add x86_64-unknown-linux-musl x86_64-pc-windows-gnurustup update
Possible Solution(s)
No response
Notes
No response
Rustup version
rustup 1.24.3 (ce5817a94 2021-05-31)
info: This is the version for the rustup toolchain manager, not the rustc compiler.
info: The currently active `rustc` version is `rustc 1.56.1 (59eed8a2a 2021-11-01)`
Installed toolchains
Default host: x86_64-apple-darwin
rustup home: /Users/andrewsonin/.rustup
installed targets for active toolchain
--------------------------------------
x86_64-apple-darwin
x86_64-pc-windows-gnu
x86_64-unknown-linux-musl
active toolchain
----------------
stable-x86_64-apple-darwin (default)
rustc 1.56.1 (59eed8a2a 2021-11-01)
Operating system
macOS Monterey 12.0.1
About this issue
- Original URL
- State: open
- Created 3 years ago
- Reactions: 17
- Comments: 25 (5 by maintainers)
You can close the rust environment in use and try closing vscode,delete files in tmp
This worked for me - I had VS Code running with rust-analyzer and ran
rustup updatein a separate powershell window. After closing VS Code and retrying with a fresh powershell instance, the error went away.got this issue today too
@rbtcollins Merging https://github.com/XAMPPRocky/remove_dir_all/pull/36 should fix this particular issue for Mac and other BSDs.
@cherryblossom000 I don’t think its related; the remove_dir_all crate is not the same code as in the stdlib.