This question already has an answer here:
Upon upgrading to 12.04 I installed Minecraft, Openjdk 6 and 7. When I login everything is fine, but after that I get the "Updating Minecraft" screen for about 0-5 seconds, then the screen goes black. I waited for about 5 minutes and eventually MC crashed and an error report came up.
Minecraft: Minecraft 1.2.5 OS: Linux (i386) version 3.2.1-24-generic-pae Java:1.6.0_24, Sun Microsystems Inc. VM: OpenJDK Server VM (mixed Mode), Sun Microsystems Inc. LWJGJ: 2.4.2 [failed to get system properties (java.lang.NullPointerException)]
org.lwjgl.LWJGLEXCEPTION: coulod not init GLX at org.lwjgl.opengl.LinuxDisplayPeerInfo.initDefaultPeerInfo (Native Method) at org.lwjgl.opengl.LinuxDisplayPeerInfo.(linuxDisplayPeerInfo.java:52)
There's some more to the report, tell me if you want me to continue, I have to type all this by hand because I can't copy paste the error report. The rest of the lines are a bunch of