Unable to install java on Ubuntu


5 Answer(s)


Thanks for posting this question. I was also facing the same issue and I could not upload the error message file so I came back to post my question. I hope this get resolved soon. 

waiting for a response.


Hi Dipendu,

The correct command is:

sudo apt-get install openjdk-8-jdk

Note: Make sure your packages are updates, to ensure run the following command:

$ sudo apt-get update

Hope this helps.

Thanks.


Now it is working..

Thanks


HI Dipendu,

Thanks for the confirmation.\

 

 


THanks. I was able to install Java