Download and compile Android6.0 abnormal solution

1. When downloading the code from the server to the local computer, the following exception will be reported when the repo is initialized

Agent admitted failure to sign using the key

If you established an ssh connection before, you only need to copy the public key to ~/.ssh/authorized_keys to log in with the public key without creating a password.

The current ssh uses the same method and the above error message will appear.

Solution: Use the ssh-add command to add the private key (change the id_rsa according to the name of the personal key)
# ssh-add ~/.ssh/id_rsa 

Verify that the generated key has been added to ssh, use ssh-add –l to view


2. When compiling lichee, the following problems will occur:

        awk: line 2: function strtonum never defined
        awk: line 2: function strtonum never defined

        The solution to awk:line is to install gnu awk, as follows:                     

         sudo apt-get install gawk will do.

Guess you like

Origin blog.csdn.net/Vincent20111024/article/details/51461721