Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I am trying to install Java on Ubuntu 12.04 but facing some problems doing it from the command line.

When I tried to add the repository using this command, I get errors:

$ sudo apt-add-repository ppa:flexiondotorg/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 80, in          get_ppa_info_from_lp                                  
    curl.perform()                                      
pycurl.error: (6, "Couldn't resolve host 'launchpad.net'")
share|improve this question

migrated from stackoverflow.com Sep 28 '12 at 16:23

This question came from our site for professional and enthusiast programmers.

    
This rather belongs on SuperUser. –  H2CO3 Sep 28 '12 at 14:37
    
with Java you mean what ? –  Ken Sep 28 '12 at 14:37
    
@H2CO3 askubuntu.com –  Ken Sep 28 '12 at 14:38
    
i mean jdk package –  akash Sep 28 '12 at 14:38
2  
askubuntu.com/a/89098 –  Ken Sep 28 '12 at 14:41

1 Answer 1

If you have a gui login then you can try this, under System Settings > Software Sources > Other Software

Click on Add... and paste ppa:flexiondotorg/java

You will find that two new entries are now part of the repo list. Now you can go ahead and do an apt-get update followed by apt-get install.

share|improve this answer

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.