add-apt-repository incorrect error msg for ipv6

Bug #1626775 reported by Matthias Arnason
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
software-properties (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

If you're unable to reach either of 91.189.89.22[23], add-apt-repository provides an error message stating that the user you provide does not exist, regardless of whether or not it does.

While this may be rare for most users, IPv6 only networks will always receive this misleading error message. Please consider detecting a failure to connect and distinguishing it from successfully connecting but receiving a negative response in the program's output.

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
Revision history for this message
mpb (mpb) wrote :

My Ubuntu 16.04 system does not have a default gateway.  Instead, I have configured apt-get to use an HTTP proxy.

Today I tried to add a ppa.

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

The error message is incorrect.  ~libreoffice does exist.

A better error message would be something like:

ERROR: unable to connect to remote host <hostname>

To reproduce the problem, simply run "sudo route del default", and then try to add a new ppa with add-apt-repository.

Bugs #1053531, #1433761 may be tangentially related.

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.