我正在尝试通过repo获取Android源代码。我跟着official instruction但是当我使用repo init -u https://android.googlesource.com/platform/manifest -b android-4.3_r2.1
时,它在尝试获取git-repo时失败了。这是终端的输出:
gpg: keyring `/home/cla/.repoconfig/gnupg/secring.gpg' created
gpg: keyring `/home/cla/.repoconfig/gnupg/pubring.gpg' created
gpg: /home/cla/.repoconfig/gnupg/trustdb.gpg: trustdb created
gpg: key 920F5C65: public key "Repo Maintainer <repo@android.kernel.org>" imported
gpg: key 692B382C: public key "Conley Owens <cco3@android.com>" imported
gpg: Total number processed: 2
gpg: imported: 2 (RSA: 1)
Get https://gerrit.googlesource.com/git-repo
error: The requested URL returned error: 406 Not Acceptable while accessing https://gerrit.googlesource.com/git-repo/info/refs
fatal: HTTP request failed
任何人都知道这个问题的解决方案吗?