Repo sync failed (73/221

I have a problem using repo. I downloaded the virtual box and installed it on a Windows 7 host where the guest OS is ubuntu 11.10. I followed the instructions http://source.android.com/source/downloading.html . Unfortunately, when performing repo synchronization, I always encounter a problem:

Fetching projects: 33% (73/221) error: Cannot fetch platform/bootable/bootloader/legacy error: Cannot fetch platform/bionic Exception in thread Thread-78: 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/nir/WORKING_DIRECTORY/.repo/repo/subcmds/sync.py", line 186, in _FetchHelper current_branch_only=opt.current_branch_only) File "/home/nir/WORKING_DIRECTORY/.repo/repo/project.py", line 926, in Sync_NetworkHalf if alt_dir is None and self._ApplyCloneBundle(initial=is_new, quiet=quiet): File "/home/nir/WORKING_DIRECTORY/.repo/repo/project.py", line 1463, in _ApplyCloneBundle exist_dst = self._FetchBundle(bundle_url, bundle_tmp, bundle_dst, quiet) File "/home/nir/WORKING_DIRECTORY/.repo/repo/project.py", line 1527, in _FetchBundle raise DownloadError('%s: %s ' % (req.get_host(), str(e))) DownloadError: android.googlesource.com: <urlopen error [Errno -2] Name or service not known> error: Couldn't resolve host 'android.googlesource.com' while accessing https://android.googlesource.com/platform/external/libpcap/info/refs fatal: HTTP request failed error: Couldn't resolve host 'android.googlesource.com' while accessing https://android.googlesource.com/platform/external/libphonenumber/info/refs fatal: HTTP request failed error: The requested URL returned error: 403 while accessing https://android.googlesource.com/platform/external/libpcap/info/refs fatal: HTTP request failed error: The requested URL returned error: 403 while accessing https://android.googlesource.com/platform/external/libphonenumber/info/refs fatal: HTTP request failed error: Cannot fetch platform/external/libpcap error: Cannot fetch platform/external/libphonenumber error: Exited sync due to fetch errors 

Does anyone know what the problem is?

thanks for your help nir

+4
source share
3 answers

Try changing the network adapter from NAT to a "bridge adapter" in the VirtualBox network settings.

Also see: https://groups.google.com/forum/#!topic/android-building/aU-TQs6B-kU

+3
source

I also had this problem, so I read the download tutorial again and decided now. see below:

The first step is to create a password from the password generator and save it in ~ / .netrc in accordance with the instructions on this page .you need to have a google account.

The second step is forcing authenticated access using the following URI manifest: https://android.googlesource.com/a/platform/manifest . they say:

$ repo init -u https://android.googlesource.com/a/platform/manifest

then say: sync $ repo it will start downloading everything

Hope this helps u

0
source

The solution to the DNS-related error that you encountered [ error: Couldn't resolve host ] is described in detail on the resolution page. Known Issues on Google AOSP Developer's Site . Apply this hotfix by adding the appropriate host entry for your remote android.googlesource.com repository inside your /etc/hosts configuration file. Start by clicking here to complete the IP address lookup tool provided by the free web resource: http://network-tools.com/nslook/ .

A full description of this Google issue with a detailed resolution that I have included here:

Difficulties in synchronizing the source tree (DNS problems).

Symptom : when performing repo synchronization, the process fails with various errors related to not recognizing the host name. One such error is <urlopen error [Errno -2] Name or service not known> . EDIT: Another search error might be error: Couldn't resolve host .

Reason . Some DNS systems can hardly cope with a large number of queries related to synchronizing the source tree (there may be several hundred queries in the worst case).

Fix : manually resolve the corresponding host names and hard-code these results locally.

You can resolve them using the nslookup command, which will give you one digital IP address for each of them (usually in the β€œAddress”, part of the result).

  $ nslookup googlesource.com $ nslookup android.googlesource.com 

Then you can hardcode them locally by editing / etc / hosts and adding two lines in this file:

  aaa.bbb.ccc.ddd googlesource.com eee.fff.ggg.hhh android.googlesource.com 

Please note that this will only work until the server addresses change, and if they do, and you cannot connect, you will have to resolve these host names again and edit etc / hosts accordingly.

0
source

Source: https://habr.com/ru/post/1386845/


All Articles