如何更新repo版本

问题描述 投票:6回答:1

当我尝试重新同步时,下面是我看到的消息。

info:可以使用新版本的repo

错误:无法运行gpg:没有这样的文件或目录 错误:无法运行gpg。 错误:无法验证标签'v1.12.17'

警告:已跳过升级到未验证的版本

如何更新我的回购版本?

git repo
1个回答
11
投票

这可能发生在Linux和Mac上。我亲自在Linux(Ubuntu)上体验过它。

Repo正在尝试自动更新自己,但在尝试验证密钥时失败,因为它无法找到gpg。要修复它,只需安装Gnu Privacy Guard(gpg)并再次运行repo

  1. 确保你安装了gpg。 Linux sudo apt-get install gpg Mac(最简单的使用Homebrew)brew install gpg
  2. 删除〜/ .repoconfig以便正确设置gpg:rm -rf ~/.repoconfig
  3. 再次运行repo sync并观察它自己更新。
  4. 错误消失了。
© www.soinside.com 2019 - 2024. All rights reserved.