sudo apt update When the process finishes, install OpenJDK 8 using the following command: sudo apt install openjdk-8-jdk -y When the installation completes, test if Java was installed successfully checking the Java version: java -version