apt command to download jdk 14 ubuntu code example Example: sudo apt install openjdk-14-jdk $ apt search openjdk