[Bug 1256565] Re: apt-key del gives wrong message if key is not in keyring

Lars Noodén lars.nooden at gmail.com
Sat Nov 30 20:46:52 UTC 2013


This patch shows where the error message is needed, but does not quite
fix the unnecessary "OK" message

** Patch added: "partial fix"
   https://bugs.launchpad.net/ubuntu/+source/apt/+bug/1256565/+attachment/3920457/+files/apt-key.diff

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to apt in Ubuntu.
https://bugs.launchpad.net/bugs/1256565

Title:
  apt-key del gives wrong message if key is not in keyring

Status in “apt” package in Ubuntu:
  New

Bug description:
  If an attempt is made to remove a key that is already not on the list of trusted keys, apt-key gives no indication that the key 
  was not found.  Instead it says "OK" no matter what:

   # apt-key del 40976EAF437BBBBB
   OK
   # apt-key list | grep 40976EAF437BBBBB
   # apt-key list | grep 40
   pub   4096R/C0B21F32 2012-05-11
   pub   4096R/EFE21092 2012-05-11
   # apt-key del 40976EAF437BBBBB
   OK

  What should happen when an attempt is made to delete a key that is not
  found among the list of trusted keys is that apt-key should complain
  with some other message than "OK".  Maybe a "Key not found" message
  would be appropriate.

  ProblemType: Bug
  DistroRelease: Ubuntu 14.04
  Package: apt 0.9.13~exp1ubuntu2
  ProcVersionSignature: Ubuntu 3.12.0-3.8-generic 3.12.0
  Uname: Linux 3.12.0-3-generic x86_64
  ApportVersion: 2.12.7-0ubuntu1
  Architecture: amd64
  CurrentDesktop: LXDE
  Date: Sat Nov 30 22:18:39 2013
  InstallationDate: Installed on 2013-11-19 (11 days ago)
  InstallationMedia: Lubuntu 14.04 "Trusty Tahr" - Alpha amd64+mac (20131118)
  SourcePackage: apt
  UpgradeStatus: No upgrade log present (probably fresh install)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apt/+bug/1256565/+subscriptions



More information about the foundations-bugs mailing list