我正在尝试在我的 Linux 系统上下载 Android 开源代码。我已经执行了 mkdir、curl 和 repo init 的初始命令,然后执行了 repo sync 命令,但过了一段时间它显示“由于 android 获取错误而导致错误退出同步”。然后我再次执行了 repo sync 命令,但过了一段时间它显示如下:
Downloading packages/apps/Settings: 75% (56MB/74MB) Exception in thread Thread-150:
Traceback (most recent call last):
File "/usr/lib/python2.7/threading.py", line 552, in __bootstrap_inner
self.run()
File "/usr/lib/python2.7/threading.py", line 505, in run
self.__target(*self.__args, **self.__kwargs)
File "/home/ingrid/.repo/repo/subcmds/sync.py", line 200, in _FetchHelper
clone_bundle=not opt.no_clone_bundle)
File "/home/ingrid/.repo/repo/project.py", line 968, in Sync_NetworkHalf
and self._ApplyCloneBundle(initial=is_new, quiet=quiet):
File "/home/ingrid/.repo/repo/project.py", line 1526, in _ApplyCloneBundle
exist_dst = self._FetchBundle(bundle_url, bundle_tmp, bundle_dst, quiet)
File "/home/ingrid/.repo/repo/project.py", line 1590, in _FetchBundle
raise DownloadError('%s: %s ' % (req.get_host(), str(e)))
DownloadError: android.googlesource.com: <urlopen error [Errno 104] Connection reset by peer>
你能告诉我为什么它会显示这个吗?
谢谢你。