Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I am trying to install java on ubuntu:

$ sudo apt-add-repository ppa:webupd8team/java

When I run this I am geting :

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'")
share|improve this question

1 Answer 1

The script tells you that host launchpad.net, on which the PPA is located, is unreachable. Check if you can open it with your browser, fix your network errors and try again.

share|improve this answer
    
I am new to ubuntu, i install ubuntu12.04.2 on VM workstation yesterday. I was able to connect to internet that time.But today am not able to connect. My resolv.conf file is : # Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8) # DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN. –  user172016 Jul 3 '13 at 7:17
    
Please pay a little attention and introduce with markup used here. Paste files through this site. And I'm sure that your network settings can be retrieved using ifconfig or netcfg. –  Danatela Jul 3 '13 at 7:29

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.