예전 자유 게시판: 안드로이드소스 다운 받을라고 하는데요 에러가 나서요


안드로이드 소스 다운받는데 이런 에러가 나네요..
제가 전에 인터넷 찾아서 repo sync를 2번 하고 그냥 디렉토리만 지웠거든요
그래서 그런건가요 아님 뭐가 잘못 된건가요

Exception in thread Thread-1:
Traceback (most recent call last):
  File "/usr/lib/python2.4/threading.py", line 442, in __bootstrap
    self.run()
  File "/usr/lib/python2.4/threading.py", line 422, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/root/mydroid/.repo/repo/subcmds/sync.py", line 182, in _FetchHelper
    success = project.Sync_NetworkHalf(quiet=opt.quiet)
  File "/root/mydroid/.repo/repo/project.py", line 926, in Sync_NetworkHalf
    if alt_dir is None and self._ApplyCloneBundle(initial=is_new, quiet=quiet):
  File "/root/mydroid/.repo/repo/project.py", line 1444, in _ApplyCloneBundle
    exist_dst = self._FetchBundle(bundle_url, bundle_tmp, bundle_dst, quiet)
  File "/root/mydroid/.repo/repo/project.py", line 1514, in _FetchBundle
    size = r.headers['content-length']
  File "/usr/lib/python2.4/rfc822.py", line 390, in __getitem__
    return self.dict[name.lower()]
KeyError: 'content-length'

Exception in thread Thread-2:
Traceback (most recent call last):
  File "/usr/lib/python2.4/threading.py", line 442, in __bootstrap
    self.run()
  File "/usr/lib/python2.4/threading.py", line 422, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/root/mydroid/.repo/repo/subcmds/sync.py", line 182, in _FetchHelper
    success = project.Sync_NetworkHalf(quiet=opt.quiet)
  File "/root/mydroid/.repo/repo/project.py", line 926, in Sync_NetworkHalf
    if alt_dir is None and self._ApplyCloneBundle(initial=is_new, quiet=quiet):
  File "/root/mydroid/.repo/repo/project.py", line 1444, in _ApplyCloneBundle
    exist_dst = self._FetchBundle(bundle_url, bundle_tmp, bundle_dst, quiet)
  File "/root/mydroid/.repo/repo/project.py", line 1514, in _FetchBundle
    size = r.headers['content-length']
  File "/usr/lib/python2.4/rfc822.py", line 390, in __getitem__
    return self.dict[name.lower()]
KeyError: 'content-length'

Exception in thread Thread-4:
Traceback (most recent call last):
  File "/usr/lib/python2.4/threading.py", line 442, in __bootstrap
    self.run()
  File "/usr/lib/python2.4/threading.py", line 422, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/root/mydroid/.repo/repo/subcmds/sync.py", line 182, in _FetchHelper
    success = project.Sync_NetworkHalf(quiet=opt.quiet)
  File "/root/mydroid/.repo/repo/project.py", line 926, in Sync_NetworkHalf
    if alt_dir is None and self._ApplyCloneBundle(initial=is_new, quiet=quiet):
  File "/root/mydroid/.repo/repo/project.py", line 1444, in _ApplyCloneBundle
    exist_dst = self._FetchBundle(bundle_url, bundle_tmp, bundle_dst, quiet)
  File "/root/mydroid/.repo/repo/project.py", line 1514, in _FetchBundle
    size = r.headers['content-length']
  File "/usr/lib/python2.4/rfc822.py", line 390, in __getitem__
    return self.dict[name.lower()]
KeyError: 'content-length'

Exception in thread Thread-3:
Traceback (most recent call last):
  File "/usr/lib/python2.4/threading.py", line 442, in __bootstrap
    self.run()
  File "/usr/lib/python2.4/threading.py", line 422, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/root/mydroid/.repo/repo/subcmds/sync.py", line 182, in _FetchHelper
    success = project.Sync_NetworkHalf(quiet=opt.quiet)
  File "/root/mydroid/.repo/repo/project.py", line 926, in Sync_NetworkHalf
    if alt_dir is None and self._ApplyCloneBundle(initial=is_new, quiet=quiet):
  File "/root/mydroid/.repo/repo/project.py", line 1444, in _ApplyCloneBundle
    exist_dst = self._FetchBundle(bundle_url, bundle_tmp, bundle_dst, quiet)
  File "/root/mydroid/.repo/repo/project.py", line 1514, in _FetchBundle
    size = r.headers['content-length']
  File "/usr/lib/python2.4/rfc822.py", line 390, in __getitem__
    return self.dict[name.lower()]
KeyError: 'content-length'

Exception in thread Thread-5:
Traceback (most recent call last):
  File "/usr/lib/python2.4/threading.py", line 442, in __bootstrap
    self.run()
  File "/usr/lib/python2.4/threading.py", line 422, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/root/mydroid/.repo/repo/subcmds/sync.py", line 182, in _FetchHelper
    success = project.Sync_NetworkHalf(quiet=opt.quiet)
  File "/root/mydroid/.repo/repo/project.py", line 926, in Sync_NetworkHalf
    if alt_dir is None and self._ApplyCloneBundle(initial=is_new, quiet=quiet):
  File "/root/mydroid/.repo/repo/project.py", line 1444, in _ApplyCloneBundle
    exist_dst = self._FetchBundle(bundle_url, bundle_tmp, bundle_dst, quiet)
  File "/root/mydroid/.repo/repo/project.py", line 1514, in _FetchBundle
    size = r.headers['content-length']
  File "/usr/lib/python2.4/rfc822.py", line 390, in __getitem__
    return self.dict[name.lower()]
KeyError: 'content-length'


error: Exited sync due to fetch errors

--이태광, 2011-10-21 10:10



아마도... 책이 나온 이후 구글쪽 관련 URL들이 바뀌었기 때문인 것 같습니다. http://source.android.com/source/downloading.html 를 참고해서 다시 시도해 보세요~ 예를 들어 repo init 할 때 책에는 git://android.git.kernel.org/platform/manifest.git 로 되어 있지만 현재 http://source.android.com/source/downloading.html 에는 https://android.googlesource.com/platform/manifest 로 되어 있습니다.

--류광, 2011-10-21 10:10