Misleading error message when adding PPA source

Bug #1781917 reported by Ruud Siebierski
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
software-properties (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Ubuntu 16.04 LTS

Please add the exception message to stdout, preferably in all cases where an exception is caught.

When trying to add a ppa source, following error message was displayed

~$ sudo add-apt-repository ppa:ubuntu-toolchain-r/test
Cannot add PPA: 'ppa:~ubuntu-toolchain-r/ubuntu/test'.
ERROR: '~ubuntu-toolchain-r' user or team does not exist.

After reading code and adding print statements in ppa.py, came to following exception:
 'Error reading https://launchpad.net/api/1.0/~ubuntu-toolchain-r/+archive/ubuntu/test: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:645)'

Exception was thrown by 'get_ppa_info_from_lp(user, ppa)' called in 'get_ppa_info(shortcut)'

This has nothing to do with user or team, but was due to wrong time/date setting on my machine.

Googling found that there are more users with the same problem having a different root-cause (e.g. proxy server settings)

Tags: xenial
Paul White (paulw2u)
tags: added: xenial
Revision history for this message
manuel (boillodmanuel) wrote :
Revision history for this message
AlekseyK (tantrido) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in software-properties (Ubuntu):
status: New → Confirmed
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.