下载Fuchsia源码报错,求解决!

源码

#1

下载前的准备都是弄好了
curl -s "https://fuchsia.googlesource.com/scripts/+/master/bootstrap?format=TEXT" | base64 --decode | bash -s topaz最后在下载源码的时候报了下面的错误。

ERROR: 'git clone --no-checkout https://fuchsia.googlesource.com/build /root/Projects/Fuchsia/fuchsia/build' failed:
Cloning into '/root/Projects/Fuchsia/fuchsia/build'...

command fail error: exit status 128

Wait for 5s before next attempt...: Cloning https://fuchsia.googlesource.com/build

ERROR: 'git clone --no-checkout https://fuchsia.googlesource.com/zircon /root/Projects/Fuchsia/fuchsia/zircon' failed:
Cloning into '/root/Projects/Fuchsia/fuchsia/zircon'...

command fail error: exit status 128

Wait for 5s before next attempt...: Cloning https://fuchsia.googlesource.com/zircon

ERROR: 'git clone --no-checkout https://fuchsia.googlesource.com/topaz /root/Projects/Fuchsia/fuchsia/topaz' failed:
Cloning into '/root/Projects/Fuchsia/fuchsia/topaz'...

command fail error: exit status 128

Wait for 5s before next attempt...: Cloning https://fuchsia.googlesource.com/topaz

ERROR: 'git clone --no-checkout https://fuchsia.googlesource.com/garnet /root/Projects/Fuchsia/fuchsia/garnet' failed:
Cloning into '/root/Projects/Fuchsia/fuchsia/garnet'...

command fail error: exit status 128

我是在vultr上租了一个美国机房的服务器,所以没有墙的问题,但是git clone的时候很多仓库git clone就是不成功,谁知道怎么解决这个问题?


#2

128 可能是网络的问题,请先检查一下你的 Go 版本和 Python 版本等环境是否正确?然后再试试看?


#3

python是2.7的,Go是最新下载的版本。网络应该没有问题,fuchsia.googlesource.com可以ping通


#4

https://blog.csdn.net/suo_guang/article/details/80828907
可以参考这篇文章,分步骤下载源码,我用官方的curl命令下载也总是失败,jiri import/update了两次就成功了


#5

感谢分享经验,对遇到困难的同学应该很有帮助


#6

我刚也碰到了这个错误,不过是在代理之内的环境,所以配置了git的 http.proxy 和 https.proxy 之后就okay了。