
Nvidia Drivers in Ubuntu : Image Source : Stanford EdTech
The latest Ubuntu 12.10 have several issues with both AMD/ATI and Nvidia proprietary drivers. Most of the Nvidia Drivers in Ubuntu cases had a small dependency issue and it can be fixed.
Sometimes, after installing Nvidia Drivers in Ubuntu, you might not see Unity or you’ll get worse graphics than before (for example : a very low resolution and everything is stretched). If you install linux-sources and the headers before installing the drivers, the issue can be fixed. So, here’s how to do it :
If you are on a fresh installation of Ubuntu (Didn’t tried to install Nvidia drivers) :
- Open the terminal and issue the following commands to install the Nvidia drivers :
1 2 3 | sudo apt-get install linux-source sudo apt-get install linux-headers-generic sudo apt-get install nvidia-current-updates |
If you already have installed Nvidia Drivers in Ubuntu first remove them :
- Open the terminal (If you don’t have Unity, use Ctrl+T to open a terminal) and enter the following commands :
1 | sudo apt-get purge nvidia-current nvidia-current-updates nvidia-experimental-304 nvidia-experimental-310 |
- Now issue the following commands to install the drivers with the dependencies :
1 2 3 | sudo apt-get install linux-source sudo apt-get install linux-headers-generic sudo apt-get install nvidia-current-updates |
Now reboot and check whether its working. If it’s not working, please let us know by leaving a comment!
Update 1 : If the problem is still there even after following the above steps, try this :
- Open the terminal (crtl+alt+t (If Unity is missing, use this shortcut to open the terminal)) and enter the following commands to remove the existing drivers :
1 2 3 4 | sudo apt-get purge nvidia-current sudo apt-get purge nvidia-current-updates sudo apt-get purge nvidia-experimental-304 sudo apt-get purge nvidia-experimental-310 |
- Next issue the following commands to add the x-swat/x-updates ppa and update the package list :
1 2 | sudo add-apt-repository ppa:ubuntu-x-swat/x-updates sudo apt-get update |
- Finally, do an upgrade and install the Nvidia Drivers in Ubuntu :
1 2 | sudo apt-get dist-upgrade sudo apt-get install nvidia-current |
Now reboot and see. If you get the issue again please leave a comment and we’ll find another way to fix the issue!
Update 2 : If you installed the Nvidia Drivers in Ubuntu before coming to the guide, sometimes you might need to re-install Ubuntu to try this.
Update 3 : If you are using a notebook with an Nvidia Optimus card, please check this guide : http://techhamlet.com/2012/12/install-linux-nvidia-optimus-drivers/
