I\'ve been trying to install the jdk on my ubuntu after downloading it.
first I\'ve used: sudo apt-get update
then: sudo apt-get install jdk*
I used another repository for oracle java.
sudo add-apt-repository ppa:linuxuprising/java
sudo apt-get update
sudo apt install oracle-java11-installer
If you get a
sudo: add-apt-repository: command not found
then you need to run the following command
sudo apt-get install software-properties-common python-software-properties