Hi Sebastien,

I used exactly the same command I used to add the ppa, except that I
added the flag --remove. Here is the command:

sudo add-apt-repository --remove ppa:"deb [arch=amd64]
https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"

The thing here is that, even if the command had the wrong parameter
(which seems to be the case), the exception should still be caught and a
proper error message be shown, shouldn't it?

The command to add this ppa (without the --remove flag) has been taken
from the official Docker page.

In addition to this error, I found that, having this ppa (which could
not be found due to Docker not having released the related version to
"focal"), when doing a refresh from the Software & Updates package, it
fails showing the Report Bug window and freezes, not letting the user to
close it. I guess this bug would appear with any ppa that cannot be
found.

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

Title:
  add-apt-repository crashed with AttributeError in
  _get_https_content_py3(): 'InvalidURL' object has no attribute
  'reason'

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

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to