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

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

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

然后查找是谁占用它的

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

相关推荐
Rust研习社24 分钟前
Rust 错误处理:thiserror 和 anyhow 的使用
rust
RE-19011 小时前
Polars:告别 Pandas 性能瓶颈,用 Rust 驱动的 DataFrame 库处理亿级数据
开发语言·rust·pandas·polars·ai生成
好家伙VCC1 小时前
# 发散创新:用 Rust 实现高性能事件驱动架构的实践与优化 在现代软件系统中,**事件驱动编程模型**已经成为构
java·开发语言·python·架构·rust
Ivanqhz1 小时前
寄存器分配的核心函数 allocate
java·开发语言·后端·python·rust
浪客川2 小时前
godot-rust入门案例
rust·游戏引擎·godot
wenlonglanying17 小时前
Windows安装Rust环境(详细教程)
开发语言·windows·rust
Rust研习社18 小时前
Rust + WebAssembly 新手完全入门指南
rust
Java水解21 小时前
Rust异步缓存系统的设计与实现
后端·rust
Rust研习社1 天前
为什么错误返回在工程实践中要优于异常捕获
rust
Luna-player1 天前
Sass与stylus的区别
rust·sass·stylus