错误:无法写入配置文件,资源暂时不可用,并且警告:无法取消链接

时间:2018-07-19 08:33:33

标签: git macos gradle build.gradle .git-folder

克隆任何存储库时出现Git问题。资源不可用,当尝试签出新分支时,每个文件都包含以下警告:无法取消链接。

已搜索解决方案,但找不到与此确切问题有关的任何内容。

我的git版本是:

git version 2.15.2 (Apple Git-101.1)

在下面克隆存储库时收到的错误和警告。

Cloning into 'repo'...
remote: Counting objects: 11812, done.
remote: Compressing objects: 100% (4191/4191), done.
remote: Total 11812 (delta 4965), reused 10164 (delta 4474)
Receiving objects: 100% (11812/11812), 3.21 MiB | 1.18 MiB/s, done.
Resolving deltas: 100% (4965/4965), done.
warning: unable to unlink '/Users/myusername/Workspace/repo/.git/config.lock': Resource temporarily unavailable
error: could not write config file /Users/myusername/Workspace/repo/.git/config: Resource temporarily unavailable
warning: unable to unlink '/Users/myusername/Workspace/repo/.git/objects/pack/pack- 
44eb34891f78eafbe39cee406ff6c4d694465be4.keep': Resource temporarily 
unavailable

假设这与权限相关,但是我对.git拥有写权限,同时在构建项目时在gradle上也遇到了类似的问题。

Following error:
Caused by: java.io.FileNotFoundException: 
/Users/username/.gradle/caches/modules-2/metadata-2.58/module-metadata.bin (Resource temporarily unavailable)

希望某人可能经历了类似的事情并且可能找到解决方案。

0 个答案:

没有答案