$ 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
答案 0 :(得分:0)
您确定您的用户对/ usr / src目录具有写权限吗? 尝试使用完全读/写访问权限克隆到其他目录。 (例如:/ tmp)