← Back to team overview

group.of.nepali.translators team mailing list archive

[Bug 1594776] Re: add-apt-repository explodes on missing ppa

 

This bug was fixed in the package software-properties - 0.96.24.1

---------------
software-properties (0.96.24.1) yakkety; urgency=medium

   * tests/test_shortcuts.py: make the tests python2 compatible.

 -- Brian Murray <brian@xxxxxxxxxx>  Wed, 13 Jul 2016 12:26:53 -0700

** Changed in: software-properties (Ubuntu)
       Status: Triaged => Fix Released

-- 
You received this bug notification because you are a member of नेपाली
भाषा समायोजकहरुको समूह, which is subscribed to Xenial.
Matching subscriptions: Ubuntu 16.04 Bugs
https://bugs.launchpad.net/bugs/1594776

Title:
  add-apt-repository explodes on missing ppa

Status in software-properties package in Ubuntu:
  Fix Released
Status in software-properties source package in Xenial:
  Triaged

Bug description:
  Just saw this on freshly updated Xenial. I think it's trying to be
  helpful and tell me what PPAs a particular LP team has published, but
  in the end it explodes:

  $ sudo add-apt-repository ppa:juju/next
  Traceback (most recent call last):
    File "/usr/lib/python3/dist-packages/softwareproperties/ppa.py", line 102, in _get_https_content_py3
      lp_page = urllib.request.urlopen(request, cafile=LAUNCHPAD_PPA_CERT)
    File "/usr/lib/python3.5/urllib/request.py", line 162, in urlopen
      return opener.open(url, data, timeout)
    File "/usr/lib/python3.5/urllib/request.py", line 471, in open
      response = meth(req, response)
    File "/usr/lib/python3.5/urllib/request.py", line 581, in http_response
      'http', request, response, code, msg, hdrs)
    File "/usr/lib/python3.5/urllib/request.py", line 509, in error
      return self._call_chain(*args)
    File "/usr/lib/python3.5/urllib/request.py", line 443, in _call_chain
      result = func(*args)
    File "/usr/lib/python3.5/urllib/request.py", line 589, in http_error_default
      raise HTTPError(req.full_url, code, msg, hdrs, fp)
  urllib.error.HTTPError: HTTP Error 404: Not Found

  During handling of the above exception, another exception occurred:

  Traceback (most recent call last):
    File "/usr/lib/python3/dist-packages/softwareproperties/ppa.py", line 327, in get_ppa_info
      ret = get_ppa_info_from_lp(user, ppa)
    File "/usr/lib/python3/dist-packages/softwareproperties/ppa.py", line 92, in get_ppa_info_from_lp
      return get_info_from_lp(lp_url)
    File "/usr/lib/python3/dist-packages/softwareproperties/ppa.py", line 88, in get_info_from_lp
      return _get_https_content_py3(lp_url)
    File "/usr/lib/python3/dist-packages/softwareproperties/ppa.py", line 108, in _get_https_content_py3
      raise PPAException("Error reading %s: %s" % (lp_url, reason), e)
  softwareproperties.ppa.PPAException: 'Error reading https://launchpad.net/api/1.0/~juju/+archive/ubuntu/next: Not Found'

  During handling of the above exception, another exception occurred:

  Traceback (most recent call last):
    File "/usr/lib/python3/dist-packages/softwareproperties/ppa.py", line 393, in shortcut_handler
      return PPAShortcutHandler(shortcut)
    File "/usr/lib/python3/dist-packages/softwareproperties/ppa.py", line 356, in __init__
      info = get_ppa_info(self.shortcut)
    File "/usr/lib/python3/dist-packages/softwareproperties/ppa.py", line 339, in get_ppa_info
      _get_suggested_ppa_message(user, ppa))
  softwareproperties.shortcuts.ShortcutException: Cannot add PPA: 'ppa:~juju/ubuntu/next'.
  The team named '~juju' has no PPA named 'ubuntu/next'
  Please choose from the following available PPAs:
   * '1.22':  1.22 Updates
   * '1.22-proposed':  1.22 Proposed
   * '1.23':  1.23 Updates
   * 'daily':  Juju Daily
   * 'devel':  juju devel packages
   * 'enablement':  Juju Enablement
   * 'experimental':  juju experimental packages
   * 'golang':  juju-golang
   * 'proposed':  juju proposed packages
   * 'stable':  juju stable packages
  Error: 'ppa:juju/next' invalid

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