Установите Java версию для Ubuntu 20.04
$ sudo update-alternatives --config java
Tanishq Vyas
$ sudo update-alternatives --config java
sudo apt update
sudo apt install openjdk-11-jdk
sudo apt update
sudo apt install openjdk-8-jdk
sudo apt-get install openjdk-11-jdk
sudo apt-get update && sudo apt-get upgrade
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys EA8CACC073C3DB2A