Blocking waiting for file lock on the registry index 问题解决

问题表现:

cargo build时一直卡在Blocking waiting for file lock on the registry index。

解决方法:

1、之前在linux下出现过一次,采用这种方法解决了:rust - Cargo build hangs with " Blocking waiting for file lock on the registry index" after building parity from source - Stack Overflow

复制代码
rm -rf ~/.cargo/registry/index/* ~/.cargo/.package-cache

2、这次出现在windows上,按道理删除对应的文件夹也能解决。

但是想到既然显示的文件锁被占用,肯定是被其他进程占了,只需要把对应进程杀掉就好。

首先找到被占用的文件夹:

然后查找是谁占用它的

把这些进程都杀掉,问题解决!

相关推荐
咚为13 分钟前
深入浅出 Rust FFI:从内存安全到二进制兼容
开发语言·安全·rust
a1117763 小时前
剪切板助手TieZ(开源项目rust)
rust·开源·剪切板
盒马盒马14 小时前
Rust:迭代器
开发语言·后端·rust
Source.Liu1 天前
【Iced】stream.rs文件
rust·iced
Kapaseker1 天前
精通 Rust 宏 — 包装新类型
rust
飞函安全1 天前
Vite 8.0:Rust.bundle,性能提升10-30倍
开发语言·人工智能·rust
奋斗中的小猩猩2 天前
OpenClaw不安全,Rust写的ZeroClaw给出满意答案
安全·rust·openclaw·小龙虾
海奥华22 天前
Rust初步学习
开发语言·学习·rust
VermouthSp2 天前
上下文切换
linux·rust
小杍随笔2 天前
【Rust 1.94.0 正式发布:数组窗口、Cargo 配置模块化、TOML 1.1 全面升级|开发者必看】
开发语言·后端·rust