Ubuntu – Ubuntu 12.10 won’t boot after Nvidia drivers upgrade

12.10bootnvidia

I have installed newest Nvidia drivers (from their site with the .run file) on my laptop with Nvidia Geroce 420M.

After some time I decided to try out open source drivers there I went to System Settings -> Software Sources -> Additional drivers and clicked Open source drivers and applied the changes.

After a reboot I have had no Unity panel shown when I logged into the system. So I googled a little and then removed all nvidia-* packages (except nvidia-common) and installed nvidia-current-updates, rebooted and … boom system won't load.

So I booted now from the livecd and got some logs from it

dmesg.log http://paste.ubuntu.com/1571454/

boot.log http://paste.ubuntu.com/1571456/

syslog http://paste.ubuntu.com/1571474/

Xorg.failsafe.log http://paste.ubuntu.com/1571479/

In boot.log there is a line:

initctl: Event failed

And in Xorg.failsafe.log :

(EE) Failed to load module "nv" (module does not exist, 0)
(EE) Failed to load module "modesetting" (module does not exist, 0)
...
(EE) open /dev/fb0: No such file or directory
(EE) Screen 0 deleted because of no matching config section.
(EE) NVIDIA(0): Failed to initialize the NVIDIA kernel module. Please see the
(EE) NVIDIA(0):     system's kernel log for additional error messages and
(EE) NVIDIA(0):     consult the NVIDIA README for details.
(EE) NVIDIA(0):  *** Aborting ***
(EE) NVIDIA(0): Failing initialization of X screen 0

When I try to boot from recovery mode to any repair filesystem, turn on networking etc. mode then I get something like :

    Continuing will remount your  / fillesystem in read/write mode and mount any 
other filesystem defined in /ect/fstab. Do you wish to continue ? 

    fsck from util-linux 2.20.1 /dev/sda: clean 318818/10117120 files, 24047888/40467456 blocks . 

What else can I provide to better illustrate the issue ?

EDIT

All I can do is go to the root prompt in recovery mode but can't remount my filesystem in read/write mode (also I can't install packages because there is a dpkg/lock).

If I choose any other option than root shell then i got stuck as described here : safemode how long should it take clean and free up space

Best Answer

First I need to say that, from experience, do not use the Nvidia drivers from the Nvidia site. Yeah sure, they will work for some people and even be the most recent ones but:

  • When a kernel upgrade appears, they might (will) fail
  • They create more problems when trying to upgrade from an older version or even downgrade.
  • They are not automatically handled like the ones found in the X-Swat or Xorg-Edgers PPA.

So to save the trouble or several things associated with the Nvidia drivers coming from their site, do not use them. Instead go with the PPAs. Either the X-Swat or Xorg-Edgers.

For this case I see the following:

(EE) Failed to load module "nv" (module does not exist, 0)

This also happen to me one time when I used the Nvidia drivers from their site, it basically did not get loaded correctly.

Remove it by adding the --uninstall parameter to the .run file you executed to install the said driver. Then proceed to reboot. This will leave you with a system that is depending on the nv or nouveau drivers for the moment. Note that you need to press CTRL+ALT+F1 to go to a terminal after the error you mention in your question appears. Then type your login and password and then kill the GUI environment by issuing the following command:

sudo service lightdm stop

Remove the driver as I mentioned above first. Now make sure you have upgraded your system:

sudo apt-get update && sudo apt-get upgrade

Then proceed to install the Xorg-Edgers PPA which is the one I recommend for 12.10:

sudo add-apt-repository ppa:xorg-edgers/ppa -y

Followed by another Update and Upgrade so it reads the new Nvidia drivers:

sudo apt-get update && sudo apt-get upgrade

Now depending on your video card you would want one of the 3 types of Nvidia drivers in there. More info can be found in How do I install the Nvidia drivers?

The one I would recommend is the Nvidia 313 drivers. Install them like this:

sudo apt-get install nvidia-313 and reboot.

If by chance the Unity panel does not appear or you just get graphical glitches everywhere, then simply downgrade from the 313 to the 310. Do it again if the problem persists from 310 to 304. The versions available in 12.10 (And related to newer, middle or older versions) are listed here:

313 Series - Newest drivers for newest cards. Package: nvidia-313
310 Series - Newer drivers for newest cards. Package: nvidia-310
304 Series - Newest drivers for old/new cards. Package: nvidia-304
173 Series - Older drivers for old cards. Package: nvidia-173
96 Series - Oldest drivers for very old cards. Package: nvidia-96

So just do a sudo apt-get install PACKAGE where PACKAGE is one of the ones in the list. Again, for your case it would be the latest 313 drivers.

Apart from this I recommend opening Dash, typing Software Sources and on the Ubuntu Software Tab and Updates Tab, activate all 4 options in each one, including the options "Unsupported Updates" and "Pre-Released Updates". You will need to update and upgrade the system like I mentioned above. But this should solve any video problems you might have.

Related Question