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

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

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

然后查找是谁占用它的

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

相关推荐
ServBay16 小时前
别再用初级写法写Rust了,8个写法你值得拥有
后端·rust
望眼欲穿的程序猿20 小时前
Hello World
嵌入式硬件·rust
望眼欲穿的程序猿1 天前
按键控制 LED
嵌入式硬件·rust
ai安歌1 天前
鸿蒙PC:Linux 搭建 Rust 开发环境并实现计算器项目
linux·rust·harmonyos
星栈1 天前
一套 Rust 代码跑三端:为什么我开始关注 Dioxus
前端·rust·前端框架
不良使1 天前
鸿蒙PC迁移_LocalSend 迁移到鸿蒙 PC:一次 Flutter + Rust + 三方库适配的完整记录
flutter·rust·harmonyos
红尘散仙2 天前
别再手动录屏了:用 VHS 给终端应用生成会动的文档素材
后端·rust
techdashen2 天前
从 Windows 的 ping.exe 入手:动态库、调用约定与 Rust FFI
开发语言·windows·rust
Venuslite2 天前
Mac系统安装Rust
rust
shimly1234562 天前
RUST Arc
rust