几个小时前我刚刚安装了 Ubuntu 13.04。安装了一些软件后,我惊讶地发现我无法再在终端中添加 apt repo!
当我执行时sudo add-apt-repository ppa:tiheum/equinox
,终端只会向我抛出这些调试消息:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/softwareproperties/ppa.py", line 98, in get_ppa_info_from_lp
lp_page = urllib.request.urlopen(request, cafile=LAUNCHPAD_PPA_CERT)
File "/usr/lib/python3.3/urllib/request.py", line 148, in urlopen
context.load_verify_locations(cafile, capath)
FileNotFoundError: [Errno 2] No such file or directory
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/bin/add-apt-repository", line 129, in <module>
ppa_info = get_ppa_info_from_lp(user, ppa_name)
File "/usr/lib/python3/dist-packages/softwareproperties/ppa.py", line 105, in get_ppa_info_from_lp
import pycurl
ImportError: No module named 'pycurl'
我发现它被报告为一个错误这里,但是该错误线程没有提到任何解决方案。
有人能帮帮我吗?非常感谢!
之后sudo apt-get install python3-pycurl
,当我sudo add-apt-repository ppa:tiheum/equinox
再次收到此奇怪的消息:
无法访问 PPA (https://launchpad.net/api/1.0/~tiheum/+archive/equinox)以获取 PPA 信息,请检查您的互联网连接。
但实际上我的互联网连接工作正常(例如我可以sudo apt-get update
)。我到底怎么了add-apt-repository
?