Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

SO HERE IS MY QUESTION: What can I do to prevent this from happening next time I upgrade Ubuntu to another version?

Here is a long involved saga of reinstalling nvidia drivers resulting in a happy return of a graphical interface. So I'd like to prevent this pain at the next upgrade. How?

Saga ensues:

I have recently attempted to upgrade from 12.04LTS to 12.10. (Afterward I found out this was ill-advised, but so be it.) After the upgrade completed, I boot into an unresponsive black screen with a blinking cursor.

Here is what I know, and what I have tried. I am not very skilled in this stuff, so let's take it slow.

  1. I can boot into recovery mode and get to a terminal prompt.

  2. I have an nvidia graphics card as shown here:

    $ lspci | grep -i nvidia 02:00.0 VGA compatible controller: nVidia Corporation G98 [Quadro NVS 295] (rev a1)

  3. I have downloaded NVIDIA-linux-x86_64-331.67.run which I believe to be the correct driver. I do have a 64 bit system.

    1. Running that gave issues with the Nouveau Kernel Driver. These seemed to be solved by

    Run sudoedit /etc/modprobe.d/nvidia-graphics-drivers.conf and fill it with this:

    This file was installed by nvidia-current-updates

    Do not edit this file manually

    blacklist nouveau blacklist lbm-nouveau blacklist nvidia-173 blacklist nvidia-96 blacklist nvidia-current blacklist nvidia-173-updates blacklist nvidia-96-updates alias nvidia nvidia_current_updates alias nouveau off alias lbm-nouveau off

    1. Re-running NVIDIA-linux-x86_64-331.67.run results in an error saying that the complier used to compile the kernel gcc 4.6 does not match the current compiler. Answering "no" to this question seems to continue the installation. What the hell? I said no. This results in another error "unable to find kernel source tree"

    2. "Installation has failed"

OK, is this fixable or is it time to bail out and install Linux fresh from a live CD?

  1. Soldiering on per the instructions here: Blank screen after installing nvidia restricted driver

  2. sudo nvidia-settings --uninstall this resulted in an error message that there was no such option as --uninstall. I was not able to find any uninstall option in nvidia-settings --help so I ignored it.

  3. sudo apt-get remove --purge nvidia*

  4. sudo apt-get remove --purge xserver-xorg-video-nouveau xserver-xorg-video-nv

  5. sudo apt-get install nvidia-common sudo apt-get install xserver-xorg-video-nouveau Message: unmet dependencies depends xserver-xorg-core recommends libg11-mesa-dri sudo apt-get install xserver-xorg-core libg11-mesa-dri Message: unable to locate package libg11-mesa-dri sudo apt-get install xserver-xorg-video-nouveau Message: unmet dependencies depends xserver-xorg-core recommends libg11-mesa-dri Unable to correct problems - you have held broken packages Ignoring this, I try sudo apt-get install --reinstall libgl1-mesa-glx libgl1-mesa-dri xserver-xorg-core

  6. Reconfigure x-server:
    sudo dpkg-reconfigure xserver-xorg

  7. Looks like this worked, I am back at a graphical interface.

SO HERE IS MY QUESTION: What can I do to prevent this from happening next time I upgrade Ubuntu to another version?

share|improve this question
    
Someone named Louis suggested a really wonderful edit to this post, which I cannot figure out how to use because the ability to do that is non-obvious to a N00B on this board. While I appreciate the chance to clean up my post and make it more readable, I would appreciate even more a substantive answer to the question that helps me solve the problem at hand. –  user280837 May 15 at 23:01

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.