I'm fairly new to Ubuntu, and I'm trying to get it working on a computer of mine. It's an older PC that I've had windows 7 on. Currently, when I boot to the desktop, within a few moments, the screen shows nothing but small horizontal bars everywhere. Using graphic failsafe mode is the only way I can do anything within it at the moment. So I'm trying to install the appropriate NVIDIA driver downloaded from their site, which is a .run file.
I got a few errors at first concerning the x server running, but was able to overcome them by using Cntl + ALt + F1, sudo service lightdm stop
Now, when I try:
$ sudo ./NVIDIA.run --kernel-source-path=/usr/src/linux-headers-3.16.0-33
ERROR: Neither the '/usr/src/linux-headers-3.16.0-33/include/linux/version.h' nor the '/usr/src/linux-headers-3.16.0-33/include/generated/uapi/linux/version.h' kernel header file exists.
The most likely reason for this is that the kernel source files in '/usr/src/linux-headers-3.16.0-33' have not been configured.
I used tab when typing the path so that it would complete it for me.
Here's the full log:
nvidia-installer log file '/var/log/nvidia-installer.log'
creation time: Mon Mar 30 21:38:44 2015
installer version: 304.125
PATH: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
nvidia-installer command line:
./nvidia-installer
--kernel-source-path=/usr/src/linux-headers-3.16.0-33
Using: nvidia-installer ncurses user interface
-> License accepted.
-> Installing NVIDIA driver version 304.125.
-> Running distribution scripts
executing: '/usr/lib/nvidia/pre-install'...
-> done.
-> The distribution-provided pre-install script failed! Continue installation anyway? (Answer: Yes)
-> Performing CC sanity check with CC="cc".
-> Performing CC version check with CC="cc".
-> Using the kernel source path '/usr/src/linux-headers-3.16.0-33' as specified by the '-- kernel-source-path' commandline option.
ERROR: Neither the '/usr/src/linux-headers-3.16.0-33/include/linux/version.h' nor the '/usr/src/linux-headers-3.16.0-33/include/generated/uapi/linux/version.h' kernel header file exists. The most likely reason for this is that the kernel source files in '/usr/src/linux- headers-3.16.0-33' have not been configured.
ERROR: Installation has failed. Please see the file '/var/log/nvidia-installer.log' for details. You may find suggestions on fixing installation problems in the README available on the Linux driver download page at www.nvidia.com.