大网数据广告活动
服务器运维问答

debootstrap "Release signed by unknown key"

· 52CE 我爱测

# debootstrap buster /srv/buster I: Retrieving InRelease I: Checking Release signature E: Release signed by unknown key (key id DCC9EFBF77E11517) Where do I get this release key, and How do I add this release key to the debootstr…

问题原文

原帖链接 · ThorSummoner · CC BY-SA 4.0

# debootstrap  buster /srv/buster
I: Retrieving InRelease 
I: Checking Release signature
E: Release signed by unknown key (key id DCC9EFBF77E11517)

Where do I get this release key, and How do I add this release key to the debootstrap trust?

社区高分解答

原帖链接 · ThorSummoner · CC BY-SA 4.0

  • Where to get the release key? The debian archive keyring server:

    https://ftp-master.debian.org/keys.html

  • How to make debootstrap trust this release key:

    Make a new keyring, and inform deboostrap to use it:

    wget https://ftp-master.debian.org/keys/release-10.asc -qO- | gpg --import --no-default-keyring --keyring ./debian-release-10.gpg
    debootstrap --keyring=./debian-release-10.gpg buster /srv/buster
    

    Compatibility Note:

    I found that using a gpg2 keyring would not work due to debootstrap using gpgv under the hood, which uses a gpg1 database version. I recreated by gpg database like so from the , note that gpg is gpg 1.x.x not gpg 2.x.x or newer at time of writing:


If deboostrap were updated to use gpg --verify instead of gpgv, I would imagine gpg2 could be used as a drop-in replacement - But I cannot be certain.

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2019-09-17)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 4.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。