我想我需要钥匙94532124541922FB在我的钥匙环,因为多带报告:
W: GPG error: http://packages.roundr.devuan.org/merged ascii InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 94532124541922FB
W: The repository 'http://auto.mirror.devuan.org/merged ascii InRelease' is not signed.我尝试使用以下方法导入密钥:
user@host:~/multistrap$ sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 94532124541922FB
Executing: /tmp/apt-key-gpghome.wsOOsj4iqi/gpg.1.sh --keyserver keyserver.ubuntu.com --recv-keys 94532124541922FB
key 94532124541922FB:
1 signature not checked due to a missing key
gpg: key 94532124541922FB: "Devuan Repository (Primary Devuan signing key) " 1 new signature
gpg: Total number processed: 1
gpg: new signatures: 1我不确定这是否成功,所以我试了一下:
user@host:~/multistrap$ gpg --list-keys
/home/user/.gnupg/pubring.kbx
--------------------------------
pub rsa3072 2019-03-25 [SC] [expires: 2021-03-24]
579B175CD95705FB9A6C3D271587404115319AFF
uid [ultimate] User
sub rsa3072 2019-03-25 [E] [expires: 2021-03-24]这让我觉得它失败了。
我怎么得到94532124541922FB键?
更新:我发现apt-键与GPG有不同的密钥环,GPG有不同的密钥环,这取决于您使用sudo的位置。
关键就在那里,使用apt-key:
user@host:~/multistrap$ sudo apt-key adv --list-keys
Executing: /tmp/apt-key-gpghome.12skPKfRJz/gpg.1.sh --list-keys
/tmp/apt-key-gpghome.12skPKfRJz/pubring.gpg
-------------------------------------------
...
pub rsa2048 2014-12-02 [SC]
72E3CB773315DFA2E464743D94532124541922FB
uid [ unknown] Devuan Repository (Primary Devuan signing key)
sub rsa2048 2014-12-02 [E]
sub rsa4096 2016-04-26 [S]
pub rsa4096 2016-10-06 [SC]
CF1921B2D91C6435848E810099C46A90B1FB3B59
uid [ unknown] Devuan ISO Toaster (Devuan GNU+Linux)
sub rsa4096 2016-10-06 [E]
pub rsa4096 2017-09-04 [SC] [expires: 2022-09-03]
E032601B7CA10BC3EA53FA81BB23C00C61FC752C
uid [ unknown] Devuan Repository (Amprolla3 on Nemesis)
sub rsa4096 2017-09-04 [E] [expires: 2022-09-03]但多表带仍在抱怨:
user@host:~/multistrap$ sudo multistrap -a armhf -d /multistrap-devuan-ascii -f simple-config
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LANG = "en_GB.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
multistrap 2.2.9 using simple-config
multistrap 2.2.9 using simple-config
Defaulting architecture to native: armhf
multistrap building armhf multistrap on 'armhf'
I: Downloading debian-archive-keyring
Get:1 http://packages.roundr.devuan.org/merged ascii/main armhf debian-archive-keyring all 2017.5 [56.4 kB]
Fetched 56.4 kB in 0s (67.5 kB/s)
Getting package lists: APT_CONFIG=/tmp/multistrap.QTx1QB apt-get -o Apt::Architecture=armhf -o Dir::Etc::TrustedParts=/multistrap-devuan-ascii/etc/apt/trusted.gpg.d -o Dir::Etc::Trusted=/multistrap-devuan-ascii/etc/apt/trusted.gpg -o Apt::Get::Download-Only=true -o Apt::Install-Recommends=false -o Dir=/multistrap-devuan-ascii/ -o Dir::Etc=/multistrap-devuan-ascii/etc/apt/ -o Dir::Etc::Parts=/multistrap-devuan-ascii/etc/apt/apt.conf.d/ -o Dir::Etc::PreferencesParts=/multistrap-devuan-ascii/etc/apt/preferences.d/ -o APT::Default-Release='*' -o Dir::State=/multistrap-devuan-ascii/var/lib/apt/ -o Dir::State::Status=/multistrap-devuan-ascii/var/lib/dpkg/status -o Dir::Cache=/multistrap-devuan-ascii/var/cache/apt/ update
Get:1 http://packages.roundr.devuan.org/merged ascii InRelease [21.9 kB]
Ign:1 http://packages.roundr.devuan.org/merged ascii InRelease
Fetched 21.9 kB in 0s (34.5 kB/s)
Reading package lists... Done
W: GPG error: http://packages.roundr.devuan.org/merged ascii InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 94532124541922FB
W: The repository 'http://auto.mirror.devuan.org/merged ascii InRelease' is not signed.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.发布于 2019-03-27 16:26:31
问题是多带只能信任目标目录中的/multistrap-devuan-ascii/etc/apt/trusted.gpg.d中的键。
当多带Debian时,这个目录中会填充从debian-archive-keyring包中提取的文件。
这个包在simple中被指定为keyring:
[General]
unpack=true
bootstrap=Debian
aptsources=Debian
[Debian]
packages=
source=http://ftp.uk.debian.org/debian
keyring=debian-archive-keyring
suite=lenny当我安装Devuan (一个没有系统的Debian叉子)时,我的simple-config看起来像:
[General]
unpack=true
bootstrap=Devuan
aptsources=Devuan
[Devuan]
packages=
source=http://auto.mirror.devuan.org/merged
keyring=
suite=asciidebian-archive-keyring包确实存在于Devuan中,但是只有Debian密钥,而没有缺少的Devuan键。没有devuan-archive-keyring。
所以看起来我需要制作一个包含Devuan公钥的devuan-archive-keyring包。
(我已经确认,通过在失败的多带运行后将repository-devuan-org.gpg放置在/multistrap-devuan-ascii/etc/apt/trusted.gpg.d/中,这是可行的。然后,在第二次调用中,多带没有错误地运行。
https://serverfault.com/questions/960268
复制相似问题