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

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

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

然后查找是谁占用它的

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

相关推荐
番茄灭世神3 小时前
Rust学习笔记第2篇
rust·编程语言
shimly1234568 小时前
(done) 速通 rustlings(20) 错误处理1 --- 不涉及Traits
rust
shimly1234568 小时前
(done) 速通 rustlings(19) Option
rust
@atweiwei8 小时前
rust所有权机制详解
开发语言·数据结构·后端·rust·内存·所有权
shimly1234569 小时前
(done) 速通 rustlings(24) 错误处理2 --- 涉及Traits
rust
shimly1234569 小时前
(done) 速通 rustlings(23) 特性 Traits
rust
shimly12345610 小时前
(done) 速通 rustlings(17) 哈希表
rust
shimly12345611 小时前
(done) 速通 rustlings(15) 字符串
rust
shimly12345612 小时前
(done) 速通 rustlings(22) 泛型
rust
yezipi耶不耶12 小时前
我在 RTMate 里使用的高并发连接管理利器: DashMap
websocket·rust