Web lists-archives.com

Why do I need to give the whole key when trying to delete a public keypair?

Dear all,

I am sharing a specific key so it's simple and easy to show -

    $ apt-key list

    pub   rsa4096 2014-11-21 [SC] [expires: 2022-11-19]
          D211 6914 1CEC D440 F2EB  8DDA 9D6D 8F6B C857 C906
    uid           [ unknown] Debian Security Archive Automatic Signing
Key (8/jessie) <ftpmaster@xxxxxxxxxx>

    $ sudo apt-key del D21169141CECD440F2EB8DDA9D6D8F6BC857C906
    [sudo] password for shirish:

Again running the apt-key list tells me that the key is no longer there.

I tried it with some different keys if using the short keycode for
e.g. if just using the first 8 alphanumeric keys it works, but found
it doesn't.

apt-key is part of apt

    $ dpkg -S /usr/bin/apt-key
    apt: /usr/bin/apt-key

     $ apt-cache policy apt
          Installed: 1.8.0
          Candidate: 1.8.0
          Version table:
         *** 1.8.0 990
                990 http://cdn-fastly.deb.debian.org/debian
buster/main amd64 Packages
                500 http://cdn-fastly.deb.debian.org/debian
unstable/main amd64 Packages
                100 /var/lib/dpkg/status

I looked at the Debian [BTS][1] but couldn't find a bug and dunno
whether it's a bug or it's a wishlist feature that I need to file. Can
anybody comment ?

  [1]: https://bugs.debian.org/cgi-bin/pkgreport.cgi?repeatmerged=no&src=apt

          Shirish Agarwal  शिरीष अग्रवाल
  My quotes in this email licensed under CC 3.0

E493 D466 6D67 59F5 1FD0 930F 870E 9A5B 5869 609C