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上,按道理删除对应的文件夹也能解决。

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

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

然后查找是谁占用它的

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

相关推荐
盛者无名8 小时前
Rust的所有权(Owenership)
开发语言·rust
BlockChain8888 小时前
MPC 钱包实战(三):Rust MPC Node + Java 调度层 + ETH 实际转账(可运行)
java·开发语言·rust
分布式存储与RustFS1 天前
RustFS在AI场景下的实测:从GPU到存储的完整加速方案
开发语言·人工智能·rust·对象存储·企业存储·rustfs·minio国产化替代
柠檬丶抒情1 天前
Rust no_std 裸机移植:9 条避坑与实战手册
开发语言·mongodb·rust
FAFU_kyp1 天前
Rust 流程控制学习教程
学习·算法·rust
FAFU_kyp1 天前
Rust 模式匹配:match 与 if let 详解
开发语言·后端·rust
Mr -老鬼2 天前
Java VS Rust
java·开发语言·rust
张心独酌2 天前
Rust开发案例库-静态服务器
服务器·开发语言·rust
liuxuzxx2 天前
使用Rust构建MCP Server Stdio类型
rust·mcp
FAFU_kyp2 天前
Rust 结构体(struct)
开发语言·后端·rust