How to Make Nvidia Drivers Work in Ubuntu 12.10

The problem is the Nvidia drivers are missing a dependency(linux-headers) Run the following commands in the terminal (in case you get a windowless screen press Ctrl+Alt+T to open the terminal.):

$ sudo apt-get install linux-headers-3.5.0-17-generic
$ sudo apt-get remove nvidia-current
$ sudo apt-get install nvidia-current