gpg:无效的关键资源 URL 遵循 Docker 官方指南

joh*_*han 33 apt gnupg docker

我正在按照官方指南安装 Docker。

在第 2 步添加 Docker 的官方 GPG 密钥时,出现以下错误:

$ curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
gpg: invalid key resource URL '/tmp/apt-key-gpghome.Rcg4Lpatvi/home:manuelschneid3r.asc.gpg'
gpg: keyblock resource '(null)': General error
gpg: key 1488EB46E192A257: 1 signature not checked due to a missing key
gpg: key 3B4FE6ACC0B21F32: 3 signatures not checked due to missing keys
gpg: key D94AA3F0EFE21092: 3 signatures not checked due to missing keys
gpg: key 871920D1991BC93C: 1 signature not checked due to a missing key
gpg: Total number processed: 9
gpg:       skipped new keys: 9
Run Code Online (Sandbox Code Playgroud)

我该如何解决?

小智 61

我最近遇到了同样的问题并通过执行

sudo rm "/etc/apt/trusted.gpg.d/home:manuelschneid3r.gpg"
Run Code Online (Sandbox Code Playgroud)

  • 就我而言,命令略有不同:`sudo rm "/etc/apt/trusted.gpg.d/home:manuelschneid3r.asc"`。在“/etc/apt/trusted.gpg.d/”中查找有问题的密钥。 (3认同)
  • 很确定这是安装 [the Albert 启动器](https://albertlauncher.github.io/installing/) 的结果。我已经在那里打开了 [一个问题](https://github.com/albertlauncher/albert/issues/1037)。 (2认同)

小智 5

安装 MongoDB 时出现此错误。以下对我有用。

sudo rm /etc/apt/trusted.gpg.d/home:manuelschneid3r.gpg