The errors I see are of the same two types as those in the bug description:
<<
Cannot add PPA: 'ppa:~snappy-dev/ubuntu/image'.
The team named '~snappy-dev' has no PPA named 'ubuntu/image'
Please choose from the following available PPAs:
* '15.04': DEPRECATED - WILL REMOVE SOON (Tools for Snappy 15.04)
* 'beta': Snappy beta
* 'edge': Snappy Edge
* 'image': Packages used in constructing the Ubuntu Core component of Snappy
...
>>
or the backtrace:
<<
Traceback (most recent call last):
File "/usr/bin/add-apt-repository", line 137, in <module>
shortcut = shortcut_handler(line)
File "/usr/lib/python3/dist-packages/softwareproperties/SoftwareProperties.py", line 885, in shortcut_handler
ret = factory(shortcut)
File "/usr/lib/python3/dist-packages/softwareproperties/ppa.py", line 469, in shortcut_handler
return PPAShortcutHandler(shortcut)
File "/usr/lib/python3/dist-packages/softwareproperties/ppa.py", line 426, in __init__
info = get_ppa_info(self.shortcut)
File "/usr/lib/python3/dist-packages/softwareproperties/ppa.py", line 392, in get_ppa_info
_get_suggested_ppa_message(user, ppa))
File "/usr/lib/python3/dist-packages/softwareproperties/ppa.py", line 349, in _get_suggested_ppa_message
lp_user = get_info_from_lp(LAUNCHPAD_USER_API % user)
File "/usr/lib/python3/dist-packages/softwareproperties/ppa.py", line 104, in get_info_from_lp
return get_info_from_https(lp_url, True)
File "/usr/lib/python3/dist-packages/softwareproperties/ppa.py", line 98, in get_info_from_https
return json.loads(data)
File "/usr/lib/python3.8/json/__init__.py", line 357, in loads
return _default_decoder.decode(s)
File "/usr/lib/python3.8/json/decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/lib/python3.8/json/decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
>>
I am seeing this on focal, when running command:
$ add-apt-repository ppa:snappy- dev/image -y
on 20.04. 22.04 seems to be fine.
The errors I see are of the same two types as those in the bug description:
<< dev/ubuntu/ image'.
Cannot add PPA: 'ppa:~snappy-
The team named '~snappy-dev' has no PPA named 'ubuntu/image'
Please choose from the following available PPAs:
* '15.04': DEPRECATED - WILL REMOVE SOON (Tools for Snappy 15.04)
* 'beta': Snappy beta
* 'edge': Snappy Edge
* 'image': Packages used in constructing the Ubuntu Core component of Snappy
...
>>
or the backtrace:
<< add-apt- repository" , line 137, in <module> handler( line) python3/ dist-packages/ softwarepropert ies/SoftwarePro perties. py", line 885, in shortcut_handler python3/ dist-packages/ softwarepropert ies/ppa. py", line 469, in shortcut_handler ler(shortcut) python3/ dist-packages/ softwarepropert ies/ppa. py", line 426, in __init__ info(self. shortcut) python3/ dist-packages/ softwarepropert ies/ppa. py", line 392, in get_ppa_info suggested_ ppa_message( user, ppa)) python3/ dist-packages/ softwarepropert ies/ppa. py", line 349, in _get_suggested_ ppa_message from_lp( LAUNCHPAD_ USER_API % user) python3/ dist-packages/ softwarepropert ies/ppa. py", line 104, in get_info_from_lp from_https( lp_url, True) python3/ dist-packages/ softwarepropert ies/ppa. py", line 98, in get_info_from_https python3. 8/json/ __init_ _.py", line 357, in loads decoder. decode( s) python3. 8/json/ decoder. py", line 337, in decode python3. 8/json/ decoder. py", line 355, in raw_decode ("Expecting value", s, err.value) from None JSONDecodeError : Expecting value: line 1 column 1 (char 0)
Traceback (most recent call last):
File "/usr/bin/
shortcut = shortcut_
File "/usr/lib/
ret = factory(shortcut)
File "/usr/lib/
return PPAShortcutHand
File "/usr/lib/
info = get_ppa_
File "/usr/lib/
_get_
File "/usr/lib/
lp_user = get_info_
File "/usr/lib/
return get_info_
File "/usr/lib/
return json.loads(data)
File "/usr/lib/
return _default_
File "/usr/lib/
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/lib/
raise JSONDecodeError
json.decoder.
>>