LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Not able to install jdk in linux ubuntu. (https://www.linuxquestions.org/questions/linux-newbie-8/not-able-to-install-jdk-in-linux-ubuntu-4175420932/)

Linlearner1 08-07-2012 11:17 PM

Not able to install jdk in linux ubuntu.
 
i am getting messages like "404 not found" for some packages when i ran "apt-get update" command.

After that when i am using "install" command msgs coming like
Unable to locate package sun,java6,jdk etc..

Anyone having any idea what i am missing ?

segmentation_fault 08-08-2012 01:15 AM

What distribution and version are you using?

kedarp 08-08-2012 01:25 AM

To install Java in Ubuntu, use the commands -

#sudo apt-get install openjdk-6-jdk

#sudo apt-get install openjdk-6-jre-headless

I think you are using the package names wrong.

Regards,
Kedar

evo2 08-08-2012 01:29 AM

Hi,

sounds like your /etc/apt/sources.list needs to be updated. But knowing what to put in there will depend on
(as segfault hints) what version of Ubuntu you are using.

I suspect you may be running an outdated version and as such the repos have moved. If this is the case you'll need to replace all instances of archive.ubuntu.com and security.ubuntu.com with old-releases.ubuntu.com.
If all this is true, you should probably consider upgrading to a current release.

Evo2.


All times are GMT -5. The time now is 09:06 AM.