Celeb Glow
updates | March 23, 2026

Package 'openjdk-11-jdk' has no installation candidate

When trying to install OpenJDK 11 in Ubuntu, I got an error

sudo apt-get install openjdk-11-jdk
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package openjdk-11-jdk is a virtual package provided by: oracle-java13-installer 13.0.2-1~linuxuprising0 oracle-java11-installer-local 11.0.6-1~linuxuprising0
You should explicitly select one to install.
E: Package 'openjdk-11-jdk' has no installation candidate
2

1 Answer

To install OpenJDK 11 in Ubuntu, use the commands listed below.

  1. Add the repository
sudo add-apt-repository ppa:openjdk-r/ppa
  1. Update package list
sudo apt-get update
  1. Install openjdk-11-jdk
sudo apt install openjdk-11-jdk
1

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy