Debian Bug report logs - #1103241
gpg --list-options show-only-fpr-mbox,show-unusable-uids --list-public-keys doesn't show revoked uids

version graph

Package: gpg; Maintainer for gpg is Debian GnuPG Maintainers <[email protected]>; Source for gpg is src:gnupg2 (PTS, buildd, popcon).

Reported by: Uwe Kleine-König <[email protected]>

Date: Tue, 15 Apr 2025 10:51:01 UTC

Severity: normal

Found in version gnupg2/2.4.7-14

Forwarded to https://lists.gnupg.org/pipermail/gnupg-users/2025-April/067578.html

Reply or subscribe to this bug.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to [email protected], [email protected], Debian GnuPG Maintainers <[email protected]>:
Bug#1103241; Package gpg. (Tue, 15 Apr 2025 10:51:02 GMT) (full text, mbox, link).


Acknowledgement sent to Uwe Kleine-König <[email protected]>:
New Bug report received and forwarded. Copy sent to [email protected], Debian GnuPG Maintainers <[email protected]>. (Tue, 15 Apr 2025 10:51:02 GMT) (full text, mbox, link).


Message #5 received at [email protected] (full text, mbox, reply):

From: Uwe Kleine-König <[email protected]>
To: Debian Bug Tracking System <[email protected]>
Subject: gpg --list-options show-only-fpr-mbox,show-unusable-uids --list-public-keys doesn't show revoked uids
Date: Tue, 15 Apr 2025 12:49:07 +0200
Package: gpg
Version: 2.4.7-14
Severity: normal
X-Debbugs-Cc: [email protected]

Hello,

	test@taurus:~$ gpg --locate-external-key [email protected]
	gpg: directory '/home/test/.gnupg' created
	gpg: keybox '/home/test/.gnupg/pubring.kbx' created
	gpg: /home/test/.gnupg/trustdb.gpg: trustdb created
	gpg: key 570338B018144F28: public key "Mattijs Korpershoek <[email protected]>" imported
	gpg: Total number processed: 1
	gpg:               imported: 1
	pub   rsa4096 2022-09-23 [SCEA]
	      8234A35B45C0D26B31C1A2DA570338B018144F28
	sub   rsa2048 2025-03-20 [S] [expires: 2027-03-20]
	sub   rsa2048 2025-03-20 [E] [expires: 2027-03-20]

	test@taurus:~$ gpg --list-options show-unusable-uids --list-keys
	/home/test/.gnupg/pubring.kbx
	-----------------------------
	pub   rsa4096 2022-09-23 [SCEA]
	      8234A35B45C0D26B31C1A2DA570338B018144F28
	uid           [ revoked] Mattijs Korpershoek <[email protected]>
	sub   rsa2048 2025-03-20 [S] [expires: 2027-03-20]
	sub   rsa2048 2025-03-20 [E] [expires: 2027-03-20]

	test@taurus:~$ gpg --list-options show-only-fpr-mbox,show-unusable-uids --list-keys

The last command has no output, though I would expect it to also print
Mattijs' key.

Do I understand something wrong here, or is this a bug?

gpg 2.2.40-1.1 (i.e. bookworm's version) behaves in the same way.

Best regards
Uwe

-- System Information:
Debian Release: trixie/sid
  APT prefers testing-debug
  APT policy: (750, 'testing-debug'), (750, 'testing'), (700, 'stable-updates'), (700, 'stable-security'), (700, 'stable-debug'), (700, 'stable'), (600, 'unstable'), (500, 'unstable-debug'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: armhf

Kernel: Linux 6.12.21-amd64 (SMP w/4 CPU threads; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages gpg depends on:
ii  gpgconf              2.4.7-14
ii  init-system-helpers  1.68
ii  libassuan9           3.0.2-2
ii  libbz2-1.0           1.0.8-6
ii  libc6                2.41-6
ii  libgcrypt20          1.11.0-7
ii  libgpg-error0        1.51-4
ii  libksba8             1.6.7-2+b1
ii  libnpth0t64          1.8-2
ii  libreadline8t64      8.2-6
ii  libsqlite3-0         3.46.1-2
ii  zlib1g               1:1.3.dfsg+really1.3.1-1+b1

Versions of packages gpg recommends:
ii  gnupg  2.4.7-14

gpg suggests no packages.

-- no debconf information



Set Bug forwarded-to-address to 'https://lists.gnupg.org/pipermail/gnupg-users/2025-April/067578.html'. Request was from Uwe Kleine-König <[email protected]> to [email protected]. (Wed, 16 Apr 2025 05:12:01 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


Debian bug tracking system administrator <[email protected]>. Last modified: Tue May 13 16:07:14 2025; Machine Name: buxtehude

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU General Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.