cargo build 一直处于 Blocking waiting for file lock on package cache
删除 .package_cache
文件即可。
那这个文件在哪里呢?
【cargo build 一直处于 Blocking waiting for file lock on package cache】在 $HOME/.cargo
路径下
╭─bot@amd-5700G ~/Desktop/rust/hello-rust?master*?
╰─?cd ~/.cargo
╭─bot@amd-5700G ~/.cargo
╰─?ll
inode Permissions Links Size Blocks User Group Date Modified Name
6294857 .rw-rw-r--1848 botbot25 Aug 20:09.crates.toml
6295067 .rw-rw-r--14528 botbot25 Aug 20:09.crates2.json
6296027 .rw-rw-r--100 botbot25 Aug 20:07.package-cache
6296018 drwxrwxr-x2-- botbot16 Nov 22:55bin
6296053 .rw-rw-r--11308 botbot25 Aug 20:07config
6296021 .rw-rw-r--13008 botbot25 Aug 20:04env
6296029 drwxrwxr-x5-- botbot25 Aug 20:08registry
╭─bot@amd-5700G ~/.cargo
╰─?rm .package-cache