gpg related error on repo sync

2,162 views
Skip to first unread message

Tom Gibara

unread,
Dec 11, 2008, 2:42:23 PM12/11/08
to Repo and Gerrit Discussion
I'm not very clued up on repo or Mac OS X, so this problem may be mine
somehow.

I attempted to do a repo sync on Mac OS 10.5.5 and encountered the
following error:

>>>>>

macbook:code tom$ repo sync
info: A new version of repo is available


object e92ceebde0034ad045e12b8241045d701383e681
type commit
tag v1.4.1
tagger Shawn O. Pearce <...> 1227570749 -0800

repo 1.4.1

fatal: exec gpg failed.
error: could not verify the tag 'v1.4.1'


warning: Skipped upgrade to unverified version

<<<<<

I decided that the error was probably caused by not having gpg
installed, I rectified this and the error message changed to:

gpg: Signature made Mon 24 Nov 23:52:31 2008 GMT using DSA key ID
920F5C65
gpg: Can't check signature: public key not found
error: could not verify the tag 'v1.4.1'

So what public key is it asking for and where do I get it from? Or has
something else gone wrong?

Shawn Pearce

unread,
Dec 11, 2008, 3:00:03 PM12/11/08
to repo-d...@googlegroups.com
Yup, all of your assumptions were correct.

To get the key installed make a new directory and run "repo init" there:

  mkdir ~/new
  cd ~/new
  repo init git://android.git.kernel.org/platform/manifest.git
  cd ~-
  rm -rf ~/new

You don't actually need to run repo sync here.  The repo init process creates ~/.repo and installs the public key from the repo wrapper script into a hidden GnuPG keyring under ~/.repo.  Keys on that keyring are trusted for automatic upgrades.

Tom Gibara

unread,
Dec 11, 2008, 3:12:20 PM12/11/08
to repo-d...@googlegroups.com
Thanks Shawn, that worked flawlessly.

2008/12/11 Shawn Pearce <s...@google.com>
Reply all
Reply to author
Forward
0 new messages