Repo init-GPG: the signature cannot be checked: the public key cannot be found

Source: Internet
Author: User

When retrieving the android code today, the following error message is displayed in the repo init:

I searched online and solved the problem with the help of the following post:

Http://bbs.csdn.net/topics/390705429


The solution mentioned in this post is:


Method 1:

This problem occurs because the repo version is incorrect. for specific reasons, you can search for it online. It is said that the error is caused by Google Code transfer. After I changed the repo, the problem has been resolved. Curl http://commondatastorage.googleapis.com/git-repo-downloads/repo> ~ /Bin/Repo


Method 2:

I also encountered the same problems as the landlord. My solution is to delete. repoconfig ($ sudo Rm-R ~ /. Repoconfig), and then repo init to solve the problem.
Why is there such a problem? You can check whether the repo code you downloaded has written a new. repoconfig folder to save signature version information. If you have used repo from other sources, the signature information in repo init is inconsistent with the content in. repoconfig. This error is reported. Delete this folder and use the current repo on your computer to generate a new signature.


I used method 2 and then solved the problem.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.