sudo apt install openjdk-8-jdk openjdk-8-jre not working code example Example: sudo apt install openjdk-14-jdk $ apt search openjdk