Cargo build 在构建 Parity 后卡在 "Blocking waiting for file lock on the registry index"
大家好!我是 Rust 新手,正在尝试从源码构建 Parity(以太坊客户端)。运行 `cargo build` 后,过程进行到下载依赖时卡住,并显示消息:
```
Blocking waiting for file lock on the registry index
```
我尝试了:
1. 删除 `~/.cargo/registry/cache/` 和 `~/.cargo/registry/index/`
2. 重启电脑
3. 运行 `cargo clean`
但都没用。cargo 进程无限挂起,甚至无法通过 Ctrl+C 中断,只能通过 `kill -9` 杀掉进程。系统:Ubuntu 20.04,Rust 通过 rustup 安装,版本为最新的稳定版。
这是我的 Cargo.toml(简化版):
```toml
[package]
name = "parity"
version = "1.0.0"
edition = "2018"
[dependencies]
parity-ethereum = { git = "https://github.com/paritytech/parity-ethereum.git" }
```
我怀疑问题在于之前的构建被异常中断,留下了文件锁。但如何解除它?也许有更