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

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

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

然后查找是谁占用它的

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

相关推荐
gopher95111 小时前
RUST:错误处理 thiserror 详解
开发语言·后端·rust
geovindu14 小时前
rust:Memento Pattern(续)
开发语言·后端·设计模式·rust·行为模式·备忘录模
Kapaseker18 小时前
同样 4 行代码,C++ 编译通过,Rust 为什么直接拒绝?
rust
DongQiShanRen1 天前
六根硬件映射(中):双站校验、生克闭环与驱动接口
数据库·人工智能·算法·rust·哈希算法·集成学习
Amos_Web1 天前
Rspack 源码解析(二十五):CssParserAndGenerator 如何把 CSS 变成可 Tree Shaking 的模块
前端·rust·前端框架
Kainy1 天前
Rust重写Photoshop开源项目PhotoCraft:无头命令行修图与AI Agent自动化实战
人工智能·rust·photoshop
I'm Jie1 天前
Rhost v2.0.0 版本发布!!!不止 SSH 终端,内置 AI Agent 支持自然语言操作远程服务器
运维·服务器·rust·开源·ssh·tauri·finalshell
青川Lapis2 天前
RUST:错误处理 thiserror 详解
rust
Source.Liu2 天前
【A11】拥有者模式平台架构笔记
windows·笔记·架构·rust
sayang_shao2 天前
用 Rust 开发 STM32H743:从零搭建一个能烧录、能看日志的项目
stm32·单片机·rust