Public bug reported:

Example command:
$ sudo apt-add-repository -y ppa:ansible/ansible
gpg: keyring `/tmp/tmp_h1uhhzk/secring.gpg' created
gpg: keyring `/tmp/tmp_h1uhhzk/pubring.gpg' created
gpg: requesting key 7BB9C367 from hkp server keyserver.ubuntu.com
gpgkeys: key 6125E2A8C77F2818FB7BD15B93C4A3FD7BB9C367 can't be retrieved
gpg: no valid OpenPGP data found.
gpg: Total number processed: 0
gpg: keyserver communications error: keyserver helper general error
gpg: keyserver communications error: unknown pubkey algorithm
gpg: keyserver receive failed: unknown pubkey algorithm
$ echo $?
0

The command should exit nonzero if any step was unable to be completed.
Ideally, Ubuntu's keyserver won't fail, but that can't be helped.

** Affects: software-properties (Ubuntu)
     Importance: Undecided
         Status: New

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

Title:
  apt-add-repository exits 0 even if it can't retrieve key

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/software-properties/+bug/1613639/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to