Apt-get reports NO_PUBKEY gpg error for keys that are present in trusted.gpg.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
APT |
Fix Released
|
Unknown
|
|||
apt (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Ubuntu 13.10
apt 0.9.9.1~ubuntu3
'apt-get update' has started showing several warnings like the following, even though the keys are present:
W: GPG error: http://
'apt-key list' shows the keys in question in its output...
pub 1024D/437D05B5 2004-09-12
uid Ubuntu Archive Automatic Signing Key <email address hidden>
sub 2048g/79164387 2004-09-12
pub 4096R/C0B21F32 2012-05-11
uid Ubuntu Archive Automatic Signing Key (2012) <email address hidden>
...and its output begins with the following:
gpg: keyblock resource `/etc/apt/
I see the same gpg message when I manually update/remove/add the keys in question. E.g.:
$ sudo apt-key update
gpg: keyblock resource `/etc/apt/
gpg: keyblock resource `/etc/apt/
gpg: key 437D05B5: "Ubuntu Archive Automatic Signing Key <email address hidden>" not changed
gpg: key FBB75451: "Ubuntu CD Image Automatic Signing Key <email address hidden>" not changed
gpg: key C0B21F32: "Ubuntu Archive Automatic Signing Key (2012) <email address hidden>" not changed
gpg: key EFE21092: "Ubuntu CD Image Automatic Signing Key (2012) <email address hidden>" not changed
gpg: Total number processed: 4
gpg: unchanged: 4
I asked about the "resource limit" message on the gnupg-users mailing list...
http://<email address hidden>
Based on Werner Koch's (the dev) answer...
http://<email address hidden>
...the secure apt related programs might be making gpg use more than the maximum number of keyrings that it can handle.
summary: |
- Apt-get reports NO_PUBKEY gpg error for key that are present in + Apt-get reports NO_PUBKEY gpg error for keys that are present in trusted.gpg. |
tags: | added: gnupg |
tags: | added: apt secure-apt |
description: | updated |
Changed in apt: | |
status: | Unknown → New |
Changed in apt: | |
status: | New → Fix Released |
Changed in apt (Ubuntu): | |
status: | Confirmed → Fix Released |
assignee: | nobody → Andi Rachman Fauzi (andirachmanfauzi) |
assignee: | Andi Rachman Fauzi (andirachmanfauzi) → nobody |
I saw the following while attempting to work around this issue:
1. trusted. gpg, each *.gpg file in /etc/apt/ trusted. gpg.d/ is a separate keyring, often containing a single key for the corresponding repository. This could effectively limit the number of repos/packages one can have, if the total number of keyrings exceeds GnuPG's limit.
In addition to /etc/apt/
2. trusted. gpg.d/ but leaves the empty keyring in the location. After I removed the empty keyring files, the "resource limit" message did not appear and 'apt-get update' did not complain about "NO_PUBKEY." So, once GnuPG's maximum number of keyrings is reached, one has to manually remove the empty keyring files, in addition to removing package repositories, in order to avoid the "NO_PUBKEY" scenario.
Deleting a key ('apt-key del <keyID>'), or removing a repository (e.g., using Synaptic), removes the key from its keyring in /etc/apt/