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.
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.
Now it is working..
Thanks for the confirmation.\
THanks. I was able to install Java