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

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

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

然后查找是谁占用它的

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

相关推荐
用户0235087373122 小时前
第02篇:5分钟上手 blockcell —— 从安装到第一次对话
rust
badmonster05 小时前
我写了一个超轻量MCP,让编码Agent真正理解你的代码——Token消耗减少70%,1分钟接入
rust·ai编程
RoyLin6 小时前
10美元硬件中可运行的隐私 LLM 推理引擎
人工智能·rust·agent
Source.Liu9 小时前
【egui】[特殊字符] 窗口配置小抄:eframe::NativeOptions
rust·egui
Hello.Reader9 小时前
Tauri 项目结构前端壳 + Rust 内核,怎么协作、怎么构建、怎么扩展
开发语言·前端·rust
Source.Liu10 小时前
【egui】[特殊字符]简单、快速、跨平台的 Rust GUI 库
rust·egui
Source.Liu1 天前
【rust-i18n】Cargo.toml 配置文件解析
rust
班公湖里洗过脚1 天前
Rust操作Josn数据及工作目录下多个应用程序维护示例
rust
Source.Liu1 天前
【rust-i18n】readme.md文件
rust·rust-i18n
锅包一切2 天前
在蓝桥杯边练边学Rust:2.原生类型
开发语言·学习·蓝桥杯·rust