我在添加 ppa 时不小心输错了。
sudo add-apt-repository ppa:team-xbmc/ppa
我用的是sudo add-apt-repository ppa:team-xmbc/ppa
(Xmbc 而不是 x骨髓C)
现在我启动时出现错误。
当我尝试使用时,sudo add-apt-repository --remove ppa:team-xmbc/ppa
我得到了这个:http://pastebin.com/ZsBi1F7L
这是 15.04
检查 /etc/apt/sources.list.d 发现没有此条目。http://pastebin.com/1RmYnmAD
使用sudo ppa-purge ppa:team-xmbc/ppa
可得:
Updating packages lists PPA to be removed: team-xmbc ppa Warning: Could not find package list for PPA: team-xmbc ppa
答案1
一切都很好,你可以忽略这个问题,那是一个错误。你的命令没有造成任何损害。
“问题”是这样的,对于你来说这是没问题的:
softwareproperties.ppa.PPAException: 'Error reading https://launchpad.net/api/1.0/~team-xmbc: Not Found'
在:
Traceback (most recent call last):
File "/usr/bin/add-apt-repository", line 119, in <module>
shortcut = shortcut_handler(line)
File "/usr/lib/python3/dist-packages/softwareproperties/SoftwareProperties.py", line 837, in shortcut_handler
ret = factory(shortcut)
File "/usr/lib/python3/dist-packages/softwareproperties/ppa.py", line 382, in shortcut_handler
return PPAShortcutHandler(shortcut)
File "/usr/lib/python3/dist-packages/softwareproperties/ppa.py", line 346, in __init__
info = get_ppa_info(self.shortcut)
File "/usr/lib/python3/dist-packages/softwareproperties/ppa.py", line 333, in get_ppa_info
_get_suggested_ppa_message(user, ppa))
File "/usr/lib/python3/dist-packages/softwareproperties/ppa.py", line 292, 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 87, in get_info_from_lp
return _get_https_content_py3(lp_url)
File "/usr/lib/python3/dist-packages/softwareproperties/ppa.py", line 107, 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/~team-xmbc: Not Found'