git - 克隆存储库时写入错误

$ sudo git clone git://git.kernel.org/pub/scm/linux/kernel/git/jeremy/xen.git linux-2.6-xen
remote:Counting objects:2275852,done.
remote:Compressing objects:100%(362867/362867) done.
Receiving objects:100%(2275852/2275852), 453.53MB | 37kiB/s, done
remote:Total 2275852 (delta 1901047),reused 2265649 (delta 1891419)
Resolving deltas:100% (1901047/1901047)done.
error:unable to write sha1 filename /usr/src/linux-2.6-xen/.git/objects/pack/pck-176ee0822d6d3afed83c05b32f2125e49ede7f7c.pack: No such file or directory
fatal :cannot store pack file
fatal :index-pack failed

最佳答案

您确定您的用户对/usr/src 目录具有写权限吗? 尝试克隆到具有完全读/写访问权限的其他目录。 (例如:/tmp)

https://stackoverflow.com/questions/9512805/

相关文章:

asp.net-mvc-3 - 哪个是公开实体或 DTO 以在 mvc3 中查看的最佳实践?

macos - OSX 信号量 : Invalid argument in sem_open

post - 无法打开流 : HTTP request failed! HTTP/1.0 400 错

symfony - 如何覆盖供应商捆绑配置?

.net - 如何从 .NET 调用 Oracle 表函数(流水线函数)

imagemagick - 使用 rmagick 调整 png 图像的大小而不会降低质量

eclipse - 为什么 Maven 不能在 Eclipse Indigo 中工作?

javascript - Javascript 中的网络流量

google-app-engine - gae 运行时 MCycles

c# - 从任务计划程序运行时,Windows 服务器上的预定 C# 控制台应用程序不显示控制台