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

Bug #1613639 reported by Matthew Mosesohn
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
software-properties (Ubuntu)
New
Undecided
Unassigned

Bug Description

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.

Tags: landscape
David Britton (dpb)
tags: added: landscape
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.