I tried to install Java several times. but dpkg was interrupted. I do not know what it means.
1 Answer
You might have got broken software. Without fixing this, installation is impossible.
To fix, press Ctrl+Alt+T and do:
sudo dpkg --configure -aas dpkg says...
Then proceed to installing Java by apt.