简体   繁体   English

无法克隆克隆

[英]Unable to git clone

I want to clone repository by using following command. 我想使用以下命令克隆存储库。

 git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git

I have got following error with this command. 我有这个命令的跟随错误。

dev@ubuntu:/a/WebRtc/Tools$ 
dev@ubuntu:/a/WebRtc/Tools$git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git
Cloning into 'depot_tools'...
fatal: 'origin' does not appear to be a git repository
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
dev@ubuntu:/a/WebRtc/Tools$

这是截图的链接

I have tried this in following ways: 我试过以下方式:

  • Update git version. 更新git版本。
  • Try with Ubuntu 15.10 and 14.04.4. 尝试使用Ubuntu 15.10和14.04.4。
  • Try same command in windows machine, it working. 在Windows机器上尝试相同的命令,它工作。

Such an error message during a clone (not a push or pull) indicates that git is not able to properly create the local repo. 克隆期间的此类错误消息(不是推或拉)表示git无法正确创建本地存储库。
See for instance " Cannot git clone to VMWare shared folder ", where the impossibility to create hard-link was problematic. 例如,请参阅“ 无法克隆到VMWare共享文件夹 ”,其中创建硬链接的可能性存在问题。

Check: 校验:

  • if your user has the right to create file/symlink/hardlink, or 如果您的用户有权创建文件/符号链接/硬链接,或者
  • if there is some kind apparmor policy which would prevent/limit the creation of files in your setup, or 如果有某种类型的apparmor策略可以阻止/限制您的设置中的文件创建,或者
  • if /a/WebRTC is a mounted folder with restricted rights if /a/WebRTC是具有受限权限的已装入文件夹

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM