zhangshenghui@ubuntu-server:~/share/rk3399$ repo init -m release/rk3399pro_release-V1.5.xml --repo-url http://github.com/aosp-mirror/tools_repo.git
Traceback (most recent call last):
File "/home/zhangshenghui/.bin/repo", line 939, in <module>
main(sys.argv[1:])
File "/home/zhangshenghui/.bin/repo", line 905, in main
_Init(args, gitc_init=(cmd == 'gitc-init'))
File "/home/zhangshenghui/.bin/repo", line 375, in _Init
_Clone(url, dst, opt.quiet, not opt.no_clone_bundle)
File "/home/zhangshenghui/.bin/repo", line 667, in _Clone
if clone_bundle and _DownloadBundle(url, local, quiet):
File "/home/zhangshenghui/.bin/repo", line 604, in _DownloadBundle
r = urllib.request.urlopen(url)
File "/usr/lib/python2.7/urllib2.py", line 154, in urlopen
return opener.open(url, data, timeout)
File "/usr/lib/python2.7/urllib2.py", line 429, in open
response = self._open(req, data)
File "/usr/lib/python2.7/urllib2.py", line 447, in _open
'_open', req)
File "/usr/lib/python2.7/urllib2.py", line 407, in _call_chain
result = func(*args)
File "/usr/lib/python2.7/urllib2.py", line 1228, in http_open
return self.do_open(httplib.HTTPConnection, req)
File "/usr/lib/python2.7/urllib2.py", line 1201, in do_open
r = h.getresponse(buffering=True)
File "/usr/lib/python2.7/httplib.py", line 1121, in getresponse
response.begin()
File "/usr/lib/python2.7/httplib.py", line 438, in begin
version, status, reason = self._read_status()
File "/usr/lib/python2.7/httplib.py", line 394, in _read_status
line = self.fp.readline(_MAXLINE + 1)
File "/usr/lib/python2.7/socket.py", line 480, in readline
data = self._sock.recv(self._rbufsize)
socket.error: [Errno 104] Connection reset by peer
zhangshenghui@ubuntu-server:~/share/rk3399$
zhangshenghui@ubuntu-server:~/share/rk3399$ 作者: jefferyzhang 时间: 2019-9-26 08:31
socket.error: [Errno 104] Connection reset by peer
这个已经不是之前的问题了,这个是因为你本地网络在你长连接下载时候直接掐断了连接。
这种问题一般是公司策略、本地路由器限制等造成的,跟github无关。
你可以尝试使用repo sync -j1 单线程下载,避免路由策略封锁。并且失败一直重试,git是断点续传的,无需担心。一直试到下完为止。