“执行 apt-key 时出现未知错误”

“执行 apt-key 时出现未知错误”

Ubuntu 18.04 LTS 64 位:当我尝试更新时,我收到错误:“执行 apt-key 时出现未知错误”,请参见下面的输出(我不允许包含全屏转储,因为它包含太多链接)。

我有另一台具有完全相同配置和操作系统的计算机,它也使用 mirror.transip.net 上的镜像,但没有出现此错误,所以我认为镜像不是问题的一部分。

看起来像是 GPG 错误,但密钥看起来还不错。为了确保万无一失,我删除了它们,然后使用以下命令重新安装它们

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys [keyID]

当然,我在 Google 上搜索过,但找不到解决方案。没有任何问题描述和诊断(例如 [升级到 18.04 后 apt update 失败)适用于我的。

如有任何建议我将不胜感激!

问候,保罗。

$ sudo apt update  
Hit:1 http://mirror.transip.net/ubuntu/ubuntu bionic InRelease
Get:2 http://mirror.transip.net/ubuntu/ubuntu bionic-updates InRelease [88.7 kB]
Get:3 http://mirror.transip.net/ubuntu/ubuntu bionic-backports InRelease [74.6 kB]
Get:4 http://security.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB]
Err:1 http://mirror.transip.net/ubuntu/ubuntu bionic InRelease
  Unknown error executing apt-key
...
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://mirror.transip.net/ubuntu/ubuntu bionic InRelease: Unknown error executing apt-key

相关内容