Minecraft – Computer Freezes on Ubuntu – Solution

I tried this:

sudo apt-get update
sudo apt-get upgrade

sudo apt-get dist-upgrade

http://askubuntu.com/questions/301484/how-do-i-update-ubuntu-manually
Error:
E: dpkg was interrupted, you must manually run ‘sudo dpkg –configure -a’ to correct the problem.

sudo dpkg --configure -a

http://askubuntu.com/questions/163200/e-dpkg-was-interrupted-run-sudo-dpkg-configure-a

Java:

sudo apt-get install --reinstall openjdk-8-jre

http://www.minecraftforum.net/forums/support/unmodified-minecraft-client/1860989-computer-freezes-ubuntu

Remove Java 7 JRE:

sudo apt-get remove openjdk-7-jre

I didn’t try LWJGL – Lightweight Java Game Library , but I found in the Ubuntu Software Center