I am trying to install the java re and java dk in Ubuntu 10.04 LTS. I tried using this link ubuntu help java. I used the first link for installing and clicked yes. I was warned that some of the packages were not able to be downloaded. I click to proceed, and afterwards the following message was brought up as an error having occurred:
W: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/o/openjdk-6/openjdk-6-jre-lib_6b20-1.9.10-0ubuntu1~10.04.3_all.deb
404 Not Found [IP: 91.189.92.167 80]
W: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/o/openjdk-6/openjdk-6-jre-headless_6b20-1.9.10-0ubuntu1~10.04.3_i386.deb
404 Not Found [IP: 91.189.92.167 80]
W: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/o/openjdk-6/icedtea-6-jre-cacao_6b20-1.9.10-0ubuntu1~10.04.3_i386.deb
404 Not Found [IP: 91.189.92.167 80]
I went to the terminal and used java -version
to get this output:
alex@alex-laptop:~$ java -version
The program 'java' can be found in the following packages:
* gcj-4.4-jre-headless
* openjdk-6-jre-headless
* cacao
* gij-4.3
* jamvm
Try: sudo apt-get install <selected package>
This was the same output as before though. I subsequently tried to install via the synaptic package manager choosing default-jre-headless 1.6-34
which included the openjdk-6-jre-headless
as well as other packages. This gave me the same errors as before using the web install.
Was the installation aborted due to these errors? If these failed are alternative download methods or is the error from my connection or system configuration? How to then proceed with installing java RE and then java DK?
Or is it simply a server/connection problem that will get fixed in time and I should try again later?
UPDATE:I ran sudo apt-get install openjdk-6-jre-headless
and the installation failed again giving E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
sudo apt-get update && sudo apt-get install --fix-missing
and then trysudo apt-get install openjdk-6-jre-headless
alex@alex-laptop:~$ java -version java version "1.6.0_20" OpenJDK Runtime Environment (IcedTea6 1.9.13) (6b20-1.9.13-0ubuntu1~10.04.1) OpenJDK Server VM (build 19.0-b09, mixed mode)
could you put your comment as an answer to give you the credit due? Does this output mean that the java development kit is also included? Do I need to now install that separately?