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

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

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

然后查找是谁占用它的

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

相关推荐
q***48312 小时前
数据库操作与数据管理——Rust 与 SQLite 的集成
数据库·rust·sqlite
Andrew_Ryan6 小时前
达梦 数据库 Rust 实战
数据库·rust·数据分析
桧***攮8 小时前
DockerGraphQLAPI
elementui·rust·visual studio
CNRio9 小时前
ZUC国密算法深度研究:原理、实现与应用(Python、Rust)
python·算法·rust
勤奋的小小尘12 小时前
第十篇:Rust 错误处理
rust
Source.Liu1 天前
【Chrono库】NaiveTime - Serde 序列化实现(naive/time/serde.rs)
rust·time
songroom1 天前
Rust: 量化策略回测与简易线程池构建(MPMC)
开发语言·后端·rust
非专业程序员1 天前
精读 GitHub - servo 浏览器(一)
前端·ios·rust
h***06651 天前
项目升级Sass版本或升级Element Plus版本遇到的问题
前端·rust·sass
星释2 天前
Rust 练习册 72:多米诺骨牌与回溯算法
开发语言·算法·rust