May 3, 2012 - Warren Held

Ubuntu 12.04: Black Screen After Logging In And Compiz Crash

I recently updated my Ubuntu 11.10 to Ubuntu 12.04 and I was really not surprised when it did not work at all.  The last time I updated my Ubuntu from 11.04 to 11.10 my system would not boot either.  I don’t know what the heck Canonical does to test releases and updates but they fail miserably.  Anyways….I was able find a temporary fix for the problem while Canonical gets their act together.

If you are interested in following this bug it is listed here.

Either boot into recovery mode and enable networking support then go to root prompt, or if you are at the black desktop you can hit CTRL + ALT + F1 to drop to a prompt.  The problem is caused by the current version of the nvidia graphics driver that was released with 12.04.  We need to add a repository and revert back to an older driver.  Run the following commands:

[bash]sudo add-apt-repository ppa:ubuntu-x-swat/x-updates
sudo apt-get update
sudo apt-get install nvidia-current=295.33-0ubuntu1~precise~xup1
sudo reboot[/bash]

Now when you login the 3D Unity desktop should load.  Just make sure that if you update your packages you don’t update the graphics driver until the bug page says it has been patched. (I linked to the page above)


A reader has pointed out that the nvidia-current=295.33-0ubuntu1~precise~xup1 package no longer exists. I would try to add the repository, do an apt-get update, and then an apt-get upgrade. It should isntall the most recent nvidia driver from the Ubuntu-X Team’s repository. Drop me a comment and let me know if this works for you.

Ubuntu Linux / Ubuntu /