Unable to delete (one specific) GPG Repository Signing Key using YaST2

I have a curious case of a repository signing key that I’m unable delete. :\

Whilst using YaST2 Software Management to remove some now un-needed repositories and signing keys, there was one specific key I was unable to delete.

Using:
Configuration → Repositories → GPG Keys…
Select the key from those listed in the top panel, (the correct key info is shown in the lower panel).
Delete → (Confirm) OK
At this point the key is no longer listed in the top panel.
Close YaST2 (OK → OK → File → Quit – Save Changes)

Re-open YaST2 Software Management
Configuration → Repositories → GPG Keys…
and the previously “deleted” key is present.

This seems to be unique to that particular key, as I’m able to delete any other key successfully.

It was my understanding that keys were located at:

“/var/cache/zypp/raw/[repo alias]/repodata”

which, for the key in question no longer exists, as the repository was deleted.

If I re-add the repository and refresh I’m not asked to accept the signing key, presumably because YaST2 still has, or thinks it has, the key.

I’ve tried deleting the key both prior to removing the repository, and after the repository was removed. In both cases the key is not deleted.

Does YaST2 keep it’s own copy elsewhere, and if so where? As I’ve yet to locate it.

Hi
Still in the rpm data base?


rpm -qa |grep pubkey

Yes…

Key: 31EA985561149B2F
Name: home:gasinvein OBS Project <home:gasinvein@build.opensuse.org>
Finger Print: A45A6D7C61B6B6661BA6E4B831EA985561149B2F


paul@Orion-15:~$ rpm -qa |grep pubkey
gpg-pubkey-6867f5be-4d77cecd
gpg-pubkey-c66b6eae-4491871e
gpg-pubkey-0d210a40-581257c6
gpg-pubkey-77fa2cdd-55fe9f0f
gpg-pubkey-324e6311-578e3afa
gpg-pubkey-3dbdc284-53674dd4
gpg-pubkey-1abd1afb-54176598
gpg-pubkey-61149b2f-586f700a   <- Yes!!
gpg-pubkey-da3b78b7-572a67bd

paul@Orion-15:~$ sudo rpm -e gpg-pubkey-61149b2f-586f700a
[sudo] password for root: 

paul@Orion-15:~$ rpm -qa |grep pubkey
gpg-pubkey-6867f5be-4d77cecd
gpg-pubkey-c66b6eae-4491871e
gpg-pubkey-0d210a40-581257c6
gpg-pubkey-77fa2cdd-55fe9f0f
gpg-pubkey-324e6311-578e3afa
gpg-pubkey-3dbdc284-53674dd4
gpg-pubkey-1abd1afb-54176598
gpg-pubkey-da3b78b7-572a67bd
paul@Orion-15:~$

Many thanks! appreciated. :slight_smile:

Another entry for my growing list of “Useful things to know”.