Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to update the repo version

Tags:

git

repo

This below is the message I see, when I try to repo sync.

info: A new version of repo is available

error: cannot run gpg: No such file or directory
error: could not run gpg.
error: could not verify the tag 'v1.12.17'

warning: Skipped upgrade to unverified version

How can I update my repo version?

like image 493
Khulja Sim Sim Avatar asked Feb 18 '15 00:02

Khulja Sim Sim


People also ask

How do you update a Linux repository?

The only thing left to do is open up a Terminal session (Control + Alt + T) and execute the following two commands: sudo apt update (to update the repositories software lists). sudo apt upgrade (to download the packages that are available)


1 Answers

This can happen on Linux and Mac. I've personally experienced it on Linux (Ubuntu).

Repo is trying to automatically update itself, but it is failing when trying to verify the key because it can't find gpg. To fix it, just install Gnu Privacy Guard (gpg) and run repo again:

  1. Make sure you have gpg installed.
    • Linux sudo apt-get install gpg
    • Mac (easiest using Homebrew) brew install gpg
  2. Delete ~/.repoconfig so it sets up gpg correctly: rm -rf ~/.repoconfig
  3. Run repo sync again and watch it update itself.
  4. Errors are gone.
like image 188
mkasberg Avatar answered Sep 19 '22 01:09

mkasberg