我正试图在我办公室的WDCloud上创建一个github文件的本地存储库。正在使用的PC机运行Ubuntu20.04。
git clone https://github.com/ZZZ/XXX进行克隆,但失败了,因此尝试了sudo git clone https://github.com/ZZZ/XXX并得到了错误当然,
guy@cloud链接到NAS目录.见:
guy@desktop:~/guy@cloud/git2$ sudo git clone https://github.com/ZZZ/XXX
[sudo] password for guy:
Cloning into 'Arduino'...
remote: Enumerating objects: 8646, done.
remote: Counting objects: 100% (8646/8646), done.
remote: Compressing objects: 100% (4145/4145), done.
remote: Total 24775 (delta 4906), reused 6922 (delta 3869), pack-reused 16129
Receiving objects: 100% (24775/24775), 43.12 MiB | 10.31 MiB/s, done.
Resolving deltas: 100% (13500/13500), done.
fatal: cannot create directory at 'libraries/Adafruit_GFX_Library': Interrupted system call
warning: Clone succeeded, but checkout failed.
You can inspect what was checked out with 'git status'
and retry with 'git restore --source=HEAD :/'
guy@desktop:~/guy@cloud/git2$ git status
fatal: not a git repository (or any parent up to mount point /home/guy)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
guy@desktop:~/guy@cloud/git2$ git restore --source=HEAD :/
fatal: not a git repository (or any parent up to mount point /home/guy)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
guy@desktop:~/guy@cloud/git2$ **编辑1:添加分叉的git (不是我的),仍然是相同的行为**
guy@desktop:~/guy@cloud/git3$ sudo git clone https://github.com/ZZZ/Low-Power
Cloning into 'Low-Power'...
remote: Enumerating objects: 125, done.
remote: Total 125 (delta 0), reused 0 (delta 0), pack-reused 125
Receiving objects: 100% (125/125), 41.64 KiB | 278.00 KiB/s, done.
Resolving deltas: 100% (54/54), done.
guy@desktop:~/guy@cloud/git3$ git status
fatal: not a git repository (or any parent up to mount point /home/guy)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
guy@desktop:~/guy@cloud/git3$ **编辑2:即使在尝试git init **时也会发生
guy@desktop:~/guy@cloud/git4$ git init
error: chmod on /home/guy/guy@cloud/git4/.git/config.lock failed: Operation not permitted
fatal: could not set 'core.filemode' to 'false'发布于 2021-03-05 02:11:09
这是:
致命:无法在“库/Adafruit_Library”创建目录:中断的系统调用
是问题的根源:试图创建该目录的mkdir系统调用正在被中断,几乎可以肯定是被Git的内部进度时钟滴答器打断,它决定何时打印"30%完成“之类的内容。
这个内部EINTR错误不应该发生。操作系统应该重新启动mkdir系统调用(考虑到Git安排一切的方式)。你碰到了一个操作系统漏洞。不幸的是,Git还没有解决OS错误的方法。你需要做三件事中的一件:
EINTR修复版本。这是解决这个问题最快的方法,但也是最多的工作。在好的方面,您可以在下一个Git发行版中获得您的名字。-)发布于 2021-03-04 19:58:12
我认为这是你需要检查的问题:
fatal: cannot create directory at 'libraries/Adafruit_GFX_Library': Interrupted system call检查写入权限,或克隆到其他位置。
https://stackoverflow.com/questions/66481589
复制相似问题