user2528085 user2528085 - 1 year ago 127
Java Question

Install Java 8 in debian Jessie

I've tried to install Java 8 into a ARM embedded linux in several ways but none of them worked:


(from the repositories of webupd8)

W: Failed to fetch
Unable to find expected entry 'main/binary-armel/Packages' in Release
file (Wrong sources.list entry or malformed file)

W: Failed to fetch
404 Not Found

E: Some index files failed to download. They have been ignored, or old
ones used instead.

It seems that this repo does not have the source for my architecture:

Architectures: amd64 arm64 armhf i386 powerpc ppc64el

And i need armel ( at least this is working for java 7 )

I also tried this way:

Downloading the jdk from Oracle and then following the instructions.

But i cannot execute the file :

root@arietta:~# java -version
-bash: /usr/bin/java: No such file or directory

and neither:

root@arietta:~# /opt/jdk1.8.0_71/bin/java -version
-bash: /usr/bin/java: No such file or directory

While the file exists and has the correct permissions... i'm going crazy..

Any idea or alternative method?

Answer Source

At the end i solved it adding jessie backports to the sources.list:

echo deb jessie-backports main >> /etc/apt/sources.list

apt-get update && apt-get install openjdk-8-jdk

update-alternatives --config java

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download