當我遵循他們在網站上提供的指南時,我試圖啟用wireshark存儲庫,當我運行時
sudo add-apt-repository ppa:Wireshark-dev/stable
它傳回了這些錯誤。
Traceback (most recent call last):
File "/usr/bin/add-apt-repository", line 136, in <module>
shortcut = shortcut_handler(line)
File "/usr/lib/python3/dist-packages/softwareproperties/SoftwareProperties.py", line 868, in shortcut_handler
ret = factory(shortcut)
File "/usr/lib/python3/dist-packages/softwareproperties/ppa.py", line 398, in shortcut_handler
return PPAShortcutHandler(shortcut)
File "/usr/lib/python3/dist-packages/softwareproperties/ppa.py", line 355, in __init__
info = get_ppa_info(self.shortcut)
File "/usr/lib/python3/dist-packages/softwareproperties/ppa.py", line 338, in get_ppa_info
_get_suggested_ppa_message(user, ppa))
File "/usr/lib/python3/dist-packages/softwareproperties/ppa.py", line 295, 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 95, in get_info_from_lp
return get_info_from_https(lp_url, True)
File "/usr/lib/python3/dist-packages/softwareproperties/ppa.py", line 90, in get_info_from_https
return json.loads(data)
File "/usr/lib/python3.6/json/__init__.py", line 354, in loads
return _default_decoder.decode(s)
File "/usr/lib/python3.6/json/decoder.py", line 339, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/lib/python3.6/json/decoder.py", line 357, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
我對使用 Linux 還很陌生,並且不熟悉終端機及其一些命令,如果能提供一些幫助,我將不勝感激,謝謝。
編輯:存儲庫的簡單拼寫錯誤,我的愚蠢錯誤。
答案1
擺脫導致問題的儲存庫。
sudo add-apt-repository --remove ppa:wireshark-dev/stable # w inwireshark 區分大小寫 須藤apt更新
從預設的Ubuntu儲存庫安裝wireshark。
sudo apt install wireshark