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

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

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

然后查找是谁占用它的

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

相关推荐
我不是李.杨40 分钟前
解决 npm i node-sass@4.12.0 安装失败异常 npm i node-sass异常解决
rust·npm·sass
白应穷奇2 小时前
Diesel异步编程: 深入理解Rust ORM的异步特性
rust·orm
林太白2 小时前
Rust-角色模块
前端·后端·rust
夕水5 小时前
一起来学习Rust-1
rust
will_csdn_go8 小时前
蓝河操作系统(BlueOS)内核 (VIVO开源)
rust
林太白1 天前
Rust详情修改删除优化
前端·后端·rust
林太白1 天前
Rust新增优化
后端·rust
许野平1 天前
Rust:如何开发32位的DLL动态库
windows·rust·动态库·dll·32位
白应穷奇1 天前
Diesel的高性能特性: 深入理解Rust ORM的性能优化
后端·rust
Hello.Reader2 天前
Rust ⽣成 .wasm 的极致瘦⾝之道
开发语言·rust·wasm