Hot answers tagged

2

It seems that you blindly adding some PPA to your Dockerfile. This Oracle Java (JDK) 8 Installer PPA (DISCONTINUED) does not provide packages for 20.04 LTS (focal) - see http://ppa.launchpad.net/webupd8team/java/ubuntu/dists/ , also it is now marked as discontinued by its owners. You have to replace this PPA by some other, for example this “Hellenic Schools ...


1

You can install The OpenJDK 8 package from the standard repositories: sudo apt install openjdk-8-jdk From there you can check the version, which should look something like this: java -version openjdk version "1.8.0_302" OpenJDK Runtime Environment (build 1.8.0_302-8u302-b08-0ubuntu2-b08) OpenJDK 64-Bit Server VM (build 25.302-b08, mixed mode) ...


1

I think you may have a X-Y problem, namely that all you really want is a JVM for your system. tl;dr sudo apt install default-jdk As suggested by running java on a Ubuntu 20.04 LTS WSL instance: tra@Thunder:~$ java Command 'java' not found, but can be installed with: sudo apt install openjdk-11-jre-headless # version 11.0.11+9-0ubuntu2~20.04, or sudo apt ...


1

If you are unsure of your system architecture, you can use the uname -m or arch command from a terminal. If you get x86_64 -> It's a x64. You can refer to this answer for more details. On a side note, as you have probably noticed, AdoptOpenJDK has transitioned to Eclipse and https://adoptopenjdk.net won't be updated as of July 2021. The new website is ...


Only top voted, non community-wiki answers of a minimum length are eligible