我正在尝试在 ubuntu 上安装 Java:
$ sudo apt-add-repository ppa:webupd8team/java
当我运行这个时我得到了:
Traceback (most recent call last):
File "/usr/bin/apt-add-repository", line 125, in <module>
ppa_info = get_ppa_info_from_lp(user, ppa_name)
File "/usr/lib/python2.7/dist-packages/softwareproperties/ppa.py", line 84, in get_ppa_info_from_lp
curl.perform()
pycurl.error: (6, "Couldn't resolve host 'launchpad.net'")
答案1
该脚本告诉您 PPA 所在的主机 launchpad.net 无法访问。请检查是否可以用浏览器打开它,修复网络错误并重试。