You likely don't have the i386 architecture enabled. Do the following:

sudo dpkg --add-architecture i386
sudo apt update
sudo apt install openjdk-11-jdk:i386
Answer from popey on askubuntu.com
🌐
LinuxCapable
linuxcapable.com › home › ubuntu › how to install openjdk 11 on ubuntu 26.04, 24.04 and 22.04
How to Install OpenJDK 11 on Ubuntu 26.04, 24.04 and 22.04 - LinuxCapable
April 28, 2026 - Install the full Java 11 JDK on Ubuntu with sudo apt install openjdk-11-jdk -y when you need both the runtime and compiler.
Discussions

Java 11 installation problem for Ubuntu 16.04 - Stack Overflow
Done Package openjdk-11-jdk is ... 11.0.8-1~linuxuprising0 You should explicitly select one to install. E: Package 'openjdk-11-jdk' has no installation candidate ... Why the complicated installation using downloads and not use apt-get install openjdk-11-jdk, as suggested ... More on stackoverflow.com
🌐 stackoverflow.com
Problem installing openjdk-11-jdk
What Debian version? Bookworm ships openjdk-17-jdk. 11 was in buster. As to why you're running a v16 JRE, no idea, you likely have some JRE in the path or installed some weird package from outside the Debian repositories. Running which java should at least give you a hint. More on reddit.com
🌐 r/debian
6
1
September 6, 2023
java - How to install JDK 11 under Ubuntu? - Stack Overflow
So Java 11 is out. Does anybody know how to install it (OpenJDK from Oracle) from the command line? I would like to see something like it was before for Oracle Java 10: sudo add-apt-repository ppa: More on stackoverflow.com
🌐 stackoverflow.com
How do you manually install java openjdk?
Did you try follow the instructions? https://openjdk.org/install/ Then you have a folder with all the stuff you need. Now you need to tell your OS how to find the binaries and libraries. For that you need to tell us your OS (Debian, Ubuntu, Arch, Fedora, ...). More on reddit.com
🌐 r/linuxadmin
18
0
November 7, 2024
🌐
GitHub
gist.github.com › samiujan › fddcc8e3d422dc72ba6231f43de4ff83
openjdk 11 installation on ubuntu 16 · GitHub
Save samiujan/fddcc8e3d422dc72ba6231f43de4ff83 to your computer and use it in GitHub Desktop.
🌐
DZone
dzone.com › coding › frameworks › installing openjdk 11 on ubuntu 18.04
Installing OpenJDK 11 on Ubuntu 18.04
October 1, 2018 - % sudo sh -c 'for bin in ... matter of a package upgrade and which alternative switches to use. % sudo apt-get install --only-upgrade default-jdk % update-alternatives --config java There are 2 choices for the alternative ...
🌐
AccuWeb Hosting
manage.accuwebhosting.com › knowledgebase › 3375 › How-to-Install-OpenJDK-JAVA-11or8-on-Ubuntu.html
How to Install OpenJDK JAVA 11/8 on Ubuntu? - AccuWebHosting
You should see options like openjdk-11-jre and openjdk-11-jdk in the list. # sudo apt-get install openjdk-11-jre openjdk-11-jdk
Find elsewhere
🌐
OneUptime
oneuptime.com › home › blog › how to install java (openjdk) on ubuntu
How to Install Java (OpenJDK) on Ubuntu
January 15, 2026 - # Install OpenJDK 21 (LTS, released September 2023) sudo apt install openjdk-21-jdk -y # Install OpenJDK 17 (previous LTS) sudo apt install openjdk-17-jdk -y # Install OpenJDK 11 (older LTS, still widely used) sudo apt install openjdk-11-jdk -y # ...
🌐
Imec
jfed.ilabt.imec.be › java11_on_linux
Java 11 on Linux
sudo apt-get update sudo apt-get install openjdk-11-jdk · WARNING On Ubuntu 18.04, the above procedure will install java 10, not 11! Use the instructions below instead: ... sudo apt-get install -y -f apt-transport-https ca-certificates curl software-properties-common openssl sudo add-apt-repository ppa:openjdk-r/ppa sudo apt-get update sudo apt-get install openjdk-11-jdk
🌐
OpenJDK
openjdk.org › install
OpenJDK: Download and install
Oracle's OpenJDK JDK binaries for Windows, macOS, and Linux are available on release-specific pages of jdk.java.net as .tar.gz or .zip archives.
🌐
Linode
linode.com › docs › guides › how-to-install-openjdk-ubuntu-22-04
Installing OpenJDK on Ubuntu 22.04 | Linode Docs
March 20, 2023 - The following command demonstrates ... instruction. ... To install release 11 of OpenJDK, use the command sudo apt-get install openjdk-11-jdk....
🌐
ComputingForGeeks
computingforgeeks.com › home › install java 21 lts (openjdk) on ubuntu 24.04 / debian 13
Install Java 21 LTS (OpenJDK) on Ubuntu 24.04 / Debian 13 [Guide]
March 21, 2026 - sudo apt update sudo apt install temurin-21-jdk -y ... openjdk version "21.0.6" 2025-01-21 LTS OpenJDK Runtime Environment Temurin-21.0.6+7 (build 21.0.6+7-LTS) OpenJDK 64-Bit Server VM Temurin-21.0.6+7 (build 21.0.6+7-LTS, mixed mode, sharing)
🌐
Super User
superuser.com › questions › 1829697 › using-jdk1-8-and-installing-openjdk-11
java - Using Jdk1.8 and installing openjdk 11 - Super User
And for the openjdk 11, I installed ... add-apt-repository 'deb apt.corretto.aws stable main' sudo apt-get update; sudo apt-get install -y java-11-amazon-corretto-jdk...
🌐
TecAdmin
tecadmin.net › install-openjdk-java-ubuntu
OpenJDK 11/8 - Download And Install on Ubuntu/Debian - TecAdmin
April 26, 2025 - apt-cache search command to search the available java version for your Ubuntu system. ... Use the below command to install OpenJDK on your Debian based systems using the package manager from the default repository. The below commands will install Java Development Kit (JDK) and Java Runtime Environment (JRE) both on your system.
🌐
YouTube
youtube.com › sdet adda for qa automation
How to Install openjdk 11 on Ubuntu 22.04 | Step-by-Step Tutorial - YouTube
In this video, you are going to learn how to install #openjdk on #ubuntu virtual machine installed in windows using oracle #virtualbox and then we will exec...
Published   January 3, 2024
Views   633
🌐
ComputingForGeeks
computingforgeeks.com › home › install java (openjdk) on debian 13 – jdk and jre
Install Java 11 (OpenJDK 11) on Debian 12 | 11 | 10 | ComputingForGeeks
February 7, 2025 - Then source your profile file and check java command: ... $ echo $JAVA_HOME /opt/jdk11 $ java -version openjdk version "11" 2018-09-25 OpenJDK Runtime Environment 18.9 (build 11+28) OpenJDK 64-Bit Server VM 18.9 (build 11+28, mixed mode) Visit Java SE Development Kit 11 download’s page to download .deb file for installation. Then install the DEB package downloaded above using the apt command:
🌐
Linuxize
linuxize.com › home › java › how to install java on ubuntu 18.04
How to Install Java on Ubuntu 18.04 | Linuxize
February 24, 2020 - This tutorial describes how to install OpenJDK as well as Oracle Java on Ubuntu 18.04. Java is one of the most popular programming languages in the world, used for building different types of …