When executing repo init on ubuntu 16.04, the error no matching key exchange method found. Their offer: diffie-hellman-group1-sha1 will occur.
Add in ~/.ssh/config:
Host *
KexAlgorithms +diffie-hellman-group1-sha1
It can be solved and passed the test on ubuntu Kirin 16.04.