1. Set the software source
Apt-get install <packagename> cannot be used (apt-get: Package has no installation candidate problem occurs in Ubuntu)
# Apt-get update
# Apt-get upgrade
# Apt-get install <packagename>
Add a third-party address:
Sudo add-apt-repository "deb www.2cto.com/lucid partner"
Sudo apt-get update
2. Install git-core and curl
3. Download repo
$ Curl www.2cto.com> repo
$ Chmod 777 repo
4. Apply for the downloaded account and password
Www.2cto. com5. append the above information ~ /. The end of the netrc file (check the permissions of the current user. If this file does not exist, create one by yourself). Be sure to store the file in the home directory of the current user and root in the home directory of the root user.
6. repo init-u https://android.googlesource.com/a/platform/manifest-B android-2.3.3_r1
7. Enter the following content to ensure that the repo sync does not respond when it is downloaded to 99%.
$ Sudo sysctl-w net. ipv4.tcp _ window_scaling = 0
8. repo sync
Author: iamcai723