I have had mixed results with Ubuntu upgrades, but in recent years they have gone pretty well. Until yesterday. I had been current with Ubuntu Oneiric 11.10 and anticipated the update to go smoothly. That was far from the case.
WARNING: If you have an nVidia 6, 7, or 8800 video card, read this post first. Do not consider updating to 12.04 until you do or you WILL be sorry.
I used the GUI Update Manager. First I ensured that my Oneiric setup was fully up to date. I also backed up all my data even though my data resides on a separate /home partition. Just because you’re paranoid doesn’t mean they are not out to get you. Then, I chose the Upgrade button in Update Manager.
I used a mirror site, so the upgrade only took about 10 minutes to download just short of 3,000 packages. Ubuntu then took about 45 minutes or so to install everything. There were a few questions to answer, so be sure to open the Details window. That all seemed to go very well, then the system auto-rebooted.
After the reboot, I logged in as usual. However, that’s where the party ended. Instead of being greeted with a Unity desktop with the launcher on the left and the panel across the top, I found only my clean wallpaper staring out of the monitor at me. I knew that my panel apps loaded because My Weather Indicator produces a weather notification when it first loads. However, I was stuck with nowhere to go. Ctrl-Alt-F1 and Ctrl-Alt-F2 did nothing.
As my first move, I used Ctrl-Alt-Backspace to return to the login screen. I then logged into the Unity 2D setup. That worked fine and provided the means to troubleshoot the issue. Interestingly, I could also seemingly successfully load the Gnome setup at first, but that didn’t last.
I took a number of approaches over the next 6 hours or so. I first used the Unity 2D to update the new packages. The first attempt produced a Partial Upgrade dialog indicating problems with the initial upgrade. After that resolved, I ran the Update Manager again and found additional packages to update. However, none of that resolved the initial issue. Throughout this and the following efforts, however, Compiz crashed multiple times. In fact, the word ‘routinely’ would apply.
Seeing that Compiz produced repeated crashes and that Unity would not load, I reinstalled all those packages. I then decided to load the dreaded open source noveau driver, but that produced an ugly 1024×768 screen in both 2D and 3D.
When that didn’t work, I then loaded and activated the “current” nVidia driver instead of the “updated” one under Additional Hardware in System Settings. It turns out the two versions are the same at this point.
Reloading the nVidia driver, however, allowed both Compiz and Unity to load on the 3D desktop. Well, sorta. While they eventually showed up on the screen, the system proved unbelievably slow. Every mouse click or app load took 2 or more minutes to take effect. Bizarre. I worked like this for over an hour to make changes to Compiz in hopes of finding a magic combination. Eventually, it all crashed and went back to just the wallpaper background. I even deleted the old 11.10 Compiz settings from my Home directory, but that didn’t help.
Since reloading the nVidia driver seemed to have the most beneficial effect, I decided to use Ubuntu 2D to search the Internet for possible solutions along that line. Eventually I put in the magic key words and this warning post appeared in the search list. The heart of the issue was the newest nVidia driver, version 295.40, which broke the support for Compiz and Unity. But that wasn’t the only issue.
Cleaning up the mess
I used Unity 2D to download nVidia driver 295.33 and install it. I recorded that process in this post. After my second attempt at installing the 295.33 driver, the 3D Unity desktop appeared. That was not the end of the saga, though.
Unity vs. Compiz
There seems to be some underlying incompatibility between Compiz and Unity in 12.04 LTS at this point. Unity would crash with alarming regularity when I changed Compiz settings related to advanced cube features. This at one point brought me back to the blank wallpaper display. However, after taking those settings out using the Unity 2D desktop and restarting the 3D desktop, I was able to restore the 3D system.
In the end, I found it necessary to disable Unity while setting up the advanced Compiz configurations. Otherwise, Unity would routinely crash and trash the setup. Disabling Unity is a risky gambit since it leaves you without a launcher or panel if something goes wrong while Unity is disabled. However, I mitigated the risk by putting a shortcut to the Gnome Terminal on the desktop. That way I could at least try to fix things on the spot.
BTW, my old instructions for how to get the cube and how to set it up in Ubuntu 11.04 still work. The 4/1/1 desktop setting under Compiz’ General tab still work fine.
After a lot of effort, I finally succeeded in producing a good Unity/Compiz desktop environment. Even then, I had strange relics at first, like icons on the launcher remaining after closing programs. Clicking on the relics made them disappear. This, too, seems to have resolved but I have no idea why. Canonical really needs to fix the issues between Compiz and Unity, though.
VMWare Workstation 8.02
Another incompatibility, but one anticipated, occurred between VMWare Workstation 8.02 and the new 3.2 Linux kernel in Precise. This happens with every major kernel upgrade. This time, there proved to be two approaches to fixing this. This thread in the VMWare forums offered both a patch for 8.02 and a new beta version of Workstation that both work with the 3.2 kernel. I chose to go with the beta version for now but I may go back to 8.02 if I encounter serious issues.
After about 9 hours total of effort, I finally regained almost all of the functionality I had in Ubuntu 11.10 Oneiric. I say almost, because I elected to leave the launcher on the left rather than try to move it to the bottom.
Ubuntu 12.04 LTS Precise Pangolin has improved significantly in Unity functionality from 11.10 Oneiric, but seems to have suffered significantly in stability on the 3D desktop. The 2D desktop seems pretty solid.
I intended this post to guide upgraders with the affected nVidia cards so that they do not have to spend all the hours that I expended to get a usable system in 12.04. If you heed the warnings and take the recommended steps to avoid the pitfalls, you should be able to obtain a usable system in just a couple of hours. While nVidia has to take the hit for destabilizing their latest video driver, Canonical takes the hit for the Unity/Compiz instabilities. I had hoped for better from an LTS.