无法获取内核源代码,因为 GPG 找不到公钥,但公钥在 apt 数据库中

无法获取内核源代码,因为 GPG 找不到公钥,但公钥在 apt 数据库中

我正在尝试下载我的 Ubuntu 16.04 的内核源代码。虽然我添加了密钥 FBFD0D3E ([电子邮件保护]), apt/gpg 认为它不存在:

apt-get source linux-image-$(uname -r)
Reading package lists... Done
Picking 'linux-signed-hwe' as source package instead of 'linux-image-4.15.0-42-generic'
Need to get 12.1 kB of source archives.
Get:1 http://archive.ubuntu.com/ubuntu xenial-updates/main linux-signed-hwe 4.15.0-42.45~16.04.1 (dsc) [1'824 B]
Get:2 http://archive.ubuntu.com/ubuntu xenial-updates/main linux-signed-hwe 4.15.0-42.45~16.04.1 (tar) [10.2 kB]
Fetched 12.1 kB in 0s (169 kB/s)            
gpgv: Signature made Mon 19 Nov 2018 13:56:49 CET using RSA key ID FBFD0D3E
gpgv: Can't check signature: public key not found
dpkg-source: warning: failed to verify signature on ./linux-signed-hwe_4.15.0-42.45~16.04.1.dsc
dpkg-source: info: extracting linux-signed-hwe in linux-signed-hwe-4.15.0
dpkg-source: info: unpacking linux-signed-hwe_4.15.0-42.45~16.04.1.tar.xz

之后,没有下载内核源代码,只有一些或多或少空的目录和一些配置数据。apt 键列表:

apt-key list
/etc/apt/trusted.gpg
--------------------
pub   1024D/437D05B5 2004-09-12
uid                  Ubuntu Archive Automatic Signing Key <[email protected]>
sub   2048g/79164387 2004-09-12

pub   4096R/C0B21F32 2012-05-11
uid                  Ubuntu Archive Automatic Signing Key (2012) <[email protected]>

pub   4096R/EFE21092 2012-05-11
uid                  Ubuntu CD Image Automatic Signing Key (2012) <[email protected]>

pub   1024D/FBB75451 2004-12-30
uid                  Ubuntu CD Image Automatic Signing Key <[email protected]>

pub   2048R/FBFD0D3E 2016-12-12
uid                  Thadeu Lima de Souza Cascardo <[email protected]>
sub   2048R/C69B8715 2016-12-12

所以对我来说,密钥似乎已导入,但由于某种原因未被 apt 识别。有人有解决方案吗?

Ubuntu 版本:

cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=16.04
DISTRIB_CODENAME=xenial

uname -a
Linux XXXXXX 4.15.0-42-generic #45~16.04.1-Ubuntu SMP Mon Nov 19 13:02:27 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

DISTRIB_DESCRIPTION="Ubuntu 16.04.5 LTS"

相关内容