环境

Debian 10 Buster 10.9.0 x32
debian-10.9.0-i386-DVD-1.iso

问题

在使用 debian-10.9.0-i386-DVD-1.iso 安装 Debian 10 后,apt-key adv 操作报错:

E: gnupg, gnupg2 and gnupg1 do not seem to be installed, but one of them is required for this operation.

apt install gnupg、apt install gnupg1 与 apt install gnupg2 均报错,可查看下方“相关报错”。

解决

由于在安装过程中未配置网络源(好象是 main 源)所导致,设置 Debian 10 Buster 源即可,参考如下设置为国内 163 源。


设置源后,再执行:

apt install gnupg2 -y

在进行安装

相关报错

apt-key adv

报错:

E: gnupg, gnupg2 and gnupg1 do not seem to be installed, but one of them is required for this operation
apt install gnupg

报错:

Package gnupg is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'gnupg' has no installation candidate
apt install gnupg1

报错:

Package gnupg1 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'gnupg1' has no installation candidate
apt install gnupg2

报错:

Package gnupg2 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
  gpgv

E: Package 'gnupg2' has no installation candidate
最后修改:2021 年 05 月 28 日 01 : 02 PM
如果觉得文章帮助了您,您可以随意赞赏。