Ubuntu – NVIDIA driver problem after updating to 12.04

12.04nvidia

As the title says I have problems with the driver after updating to 12.04. The GUI doesnt start anymore, I only see the terminal. I have googled this for a couple of days now and have tried different things like running commands for update, upgrade and tried to uninstall and re-install the NVIDIA-drivers but with no success.

No matter what I do I get this message:
"Error: API mismatch: the NVIDIA kernel module has version 295.40, but this NVIDIA driver component has version 295.49. Please make sure that the kernel and all NVIDIA driver components has the same version."

Is there anyway I can fix this from the terminal?

Best Answer

Looks like you didn't uninstall your previous driver version. This can happen because nvidia-current-dev is of version 295.40 and nvidia-current-updates-dev is of version 295.49 as reported.

If you've installed the nVidia driver from Ubuntu's Additional Drivers dialogue

, try sudo apt-get purge nvidia* then try reinstalling by sudo apt-get install nvidia-current-updates-dev then reboot.

If you have used the .run file from nVidia's website

then go to a console by pressing Alt+Ctrl+F1 and then run nvidia-xxx-pkg1.run --uninstall to remove the previous driver components. Now give a reboot and see if that works. If not, then execute sudo echo "blacklist nouveau" >> /etc/modprobe.d/blacklist.conf so that the default nouveau driver for nVidia chipsets are not loaded instead of proprietary one. Finally install packaged binary drivers by sudo apt-get install nvidia-current-updates-dev.