[Bug 987829] Re: dmtarmey at dmtarmey-DIXONSXP ~ $ sudo add-apt-repository ppa:user/ppa:pkgcrosswire/ppa [sudo] password for dmtarmey: Traceback (most recent call last): File "/usr/bin/add-apt-repository", line 88, in <module> ppa_info = get_ppa_info_from_lp(user, ppa_name) File "/usr/lib/python2.7/dist-packages/softwareproperties/ppa.py", line 83, in get_ppa_info_from_lp return json.loads(lp_page) File "/usr/lib/python2.7/json/__init__.py", line 326, in loads return _default_decoder.decode(s) File "/usr/lib/python2.7/json/decoder.py", line 366, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "/usr/lib/python2.7/json/decoder.py", line 384, in raw_decode raise ValueError("No JSON object could be decoded") ValueError: No JSON object could be decoded Can you tell me what this is showing please.

Dave Lentz 987829 at bugs.launchpad.net
Tue Apr 24 17:18:00 UTC 2012


The correct command is:
sudo add-apt-repository ppa:pkgcrosswire/ppa

Still, add-apt-repository should not crash. I could not reproduce this
bug using the same command in Ubuntu Precise/12.04

** Package changed: xiphos (Ubuntu) => software-properties (Ubuntu)

** Summary changed:

- dmtarmey at dmtarmey-DIXONSXP ~ $ sudo add-apt-repository ppa:user/ppa:pkgcrosswire/ppa [sudo] password for dmtarmey: Traceback (most recent call last):   File "/usr/bin/add-apt-repository", line 88, in <module>     ppa_info = get_ppa_info_from_lp(user, ppa_name)   File "/usr/lib/python2.7/dist-packages/softwareproperties/ppa.py", line 83, in get_ppa_info_from_lp     return json.loads(lp_page)   File "/usr/lib/python2.7/json/__init__.py", line 326, in loads     return _default_decoder.decode(s)   File "/usr/lib/python2.7/json/decoder.py", line 366, in decode     obj, end = self.raw_decode(s, idx=_w(s, 0).end())   File "/usr/lib/python2.7/json/decoder.py", line 384, in raw_decode     raise ValueError("No JSON object could be decoded") ValueError: No JSON object could be decoded  Can you tell me what this is showing please.
+ add-apt-repository crashes with invalid ppa link

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

Title:
  add-apt-repository crashes with invalid ppa link

Status in “software-properties” package in Ubuntu:
  New

Bug description:
  dmtarmey at dmtarmey-DIXONSXP ~ $ sudo add-apt-repository ppa:user/ppa:pkgcrosswire/ppa
  [sudo] password for dmtarmey:
  Traceback (most recent call last):
    File "/usr/bin/add-apt-repository", line 88, in <module>
      ppa_info = get_ppa_info_from_lp(user, ppa_name)
    File "/usr/lib/python2.7/dist-packages/softwareproperties/ppa.py", line 83, in get_ppa_info_from_lp
      return json.loads(lp_page)
    File "/usr/lib/python2.7/json/__init__.py", line 326, in loads
      return _default_decoder.decode(s)
    File "/usr/lib/python2.7/json/decoder.py", line 366, in decode
      obj, end = self.raw_decode(s, idx=_w(s, 0).end())
    File "/usr/lib/python2.7/json/decoder.py", line 384, in raw_decode
      raise ValueError("No JSON object could be decoded")
  ValueError: No JSON object could be decoded

  Can you tell me what this is showing please.

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




More information about the foundations-bugs mailing list