Java install fails

I tried to install: OpenJDK Java 6 Runtime and got these errors:

Failed to fetch http://mirror.atlantic.net/ubuntu/pool/main/t/tzdata/tzdata_2016c-0ubuntu0.15.10_all.deb 404 Not Found [IP: 209.208.0.134 80]

Failed to fetch http://mirror.atlantic.net/ubuntu/pool/main/t/tzdata/tzdata-java_2016c-0ubuntu0.15.10_all.deb 404 Not Found [IP: 209.208.0.134 80]

I tried to install: OpenJDK Java 7 Runtime and got these errors:

Failed to fetch http://mirror.atlantic.net/ubuntu/pool/main/t/tzdata/tzdata_2016c-0ubuntu0.15.10_all.deb 404 Not Found [IP: 209.208.0.134 80]
Failed to fetch http://mirror.atlantic.net/ubuntu/pool/main/t/tzdata/tzdata-java_2016c-0ubuntu0.15.10_all.deb 404 Not Found [IP: 209.208.0.134 80]
Failed to fetch http://mirror.atlantic.net/ubuntu/pool/main/o/openjdk-7/openjdk-7-jre-headless_7u95-2.6.4-0ubuntu0.15.10.2_amd64.deb 404 Not Found [IP: 209.208.0.134 80]
Failed to fetch http://mirror.atlantic.net/ubuntu/pool/main/o/openjdk-7/openjdk-7-jre_7u95-2.6.4-0ubuntu0.15.10.2_amd64.deb 404 Not Found [IP: 209.208.0.134 80]

I tried to install: OpenJDK Java 8 Runtime and got these errors:

Failed to fetch http://mirror.atlantic.net/ubuntu/pool/universe/o/openjdk-8/openjdk-8-jre-headless_8u66-b17-1_amd64.deb 404 Not Found [IP: 209.208.0.134 80]
Failed to fetch http://mirror.atlantic.net/ubuntu/pool/universe/o/openjdk-8/openjdk-8-jre_8u66-b17-1_amd64.deb 404 Not Found [IP: 209.208.0.134 80]

These were the only Java versions available on Ubuntu Software Center.

The Synaptic Package Manager also failed to install these versions of Java.

I’m on Ubuntu MATE 15.10
How do I fix this?

1 Like

I tried the first source in you list and did not find

/tzdata_2016c-0ubuntu0.15.10_all.deb

http://mirror.atlantic.net/ubuntu/pool/main/t/tzdata/

Are you loading the right source for your system?

1 Like

I opened Ubuntu Software Center and clicked: Edit->Software Sources…
Changed the mirror to the Optimal one, which is: http://mirror.cogentco.com/
Then tried to install Java. It did!

Thanks.

2 Likes

Good deal :slight_smile:

Please check the solution

Thanks

I did find this one though:
http://mirror.atlantic.net/ubuntu/pool/main/t/tzdata/tzdata_2016d-0ubuntu0.15.10_all.deb

Could have been a miror issue.

I need to install OpenJDK-Runtime. The suggestion I got was use sudo apt-get install openjdk-8-jdk-headless wget unzip bzip2 but I don’t think Java is actually running because of an error in the launcher. Should I use the solution above?

Original instructions to setup my specific use are here. Thanks for any help!

This should be as simple as:

sudo apt install default-jre

Make sure java is there by opening a terminal and typing "java", if it says unknown command java is not installed. If it doesn't your launcher has an issue.

1 Like

Thanks for the tips. I typed java and it reported back:

Usage: java [-options] class [args…]
(to execute a class)
or java [-options] -jar jarfile [args…]
(to execute a jar file)
where options include:
-d32 use a 32-bit data model if available
-d64 use a 64-bit data model if available
-server to select the “server” VM
-jamvm to select the “jamvm” VM
-dcevm to select the “dcevm” VM
-zero is a synonym for the “server” VM [deprecated]
The default VM is server.

-cp <class search path of directories and zip/jar files>
-classpath <class search path of directories and zip/jar files>
              A : separated list of directories, JAR archives,
              and ZIP archives to search for class files.
-D<name>=<value>
              set a system property
-verbose:[class|gc|jni]
              enable verbose output
-version      print product version and exit
-version:<value>
              Warning: this feature is deprecated and will be removed
              in a future release.
              require the specified version to run
-showversion  print product version and continue
-jre-restrict-search | -no-jre-restrict-search
              Warning: this feature is deprecated and will be removed
              in a future release.
              include/exclude user private JREs in the version search
-? -help      print this help message
-X            print help on non-standard options
-ea[:<packagename>...|:<classname>]
-enableassertions[:<packagename>...|:<classname>]
              enable assertions with specified granularity
-da[:<packagename>...|:<classname>]
-disableassertions[:<packagename>...|:<classname>]
              disable assertions with specified granularity
-esa | -enablesystemassertions
              enable system assertions
-dsa | -disablesystemassertions
              disable system assertions
-agentlib:<libname>[=<options>]
              load native agent library <libname>, e.g. -agentlib:hprof
              see also, -agentlib:jdwp=help and -agentlib:hprof=help
-agentpath:<pathname>[=<options>]
              load native agent library by full pathname
-javaagent:<jarpath>[=<options>]
              load Java programming language agent, see java.lang.instrument
-splash:<imagepath>
              show splash screen with specified image

See http://www.oracle.com/technetwork/java/javase/documentation/index.html for more details.

So I suppose I have it installed.

Upon typing java -version I see:

openjdk version “1.8.0_131”
OpenJDK Runtime Environment (build 1.8.0_131-8u131-b11-0ubuntu1.16.04.2-b11)
OpenJDK Zero VM (build 25.131-b11, interpreted mode)

I guess this all looks good?