I am trying to install cuda toolkit along with its drivers.
I downloaded the <i>cuda_7.5.18_linux.run</i>
and ran these commands to install it :
Ctrl_Alt-F1 :
sudo service lightdm stop
cd to media/username/store/nvidia
sudo sh cuda_7.5.18_linux.run
this failed the first time and told me to reboot.
This is the first log: http://pastebin.com/nRATL0X8 .
if You look at the logs, you can see that all the buildings seem to be going well untill it says :
ERROR: Unable to build the NVIDIA kernel module.
ERROR: Installation has failed. Please see the file
'/var/log/nvidia-installer.log' for details. You may find
I rebooted and nothing happened
I tried
sudo init 3
sudo sh cuda_7.5.18_linux.run
and again no luck.
it kept saying :
The driver installation is unable to locate the kernel source. Please
make sure that the kernel source packages are installed and set up
correctly. If you know that the kernel source packages are installed
and set up correctly, you may pass the location of the kernel source
with the '--kernel-source-path' flag.
So this time I wrote :
hossein@hossein:/tmp$ uname -r
4.4.0-47-generic
and went to usr/scr/ and this is how it looks :
hossein@hossein:/usr/src$ ls
linux-headers-3.13.0-101 linux-headers-4.4.0-31-generic
linux-headers-3.13.0-101-generic linux-headers-4.4.0-47
linux-headers-4.4.0-31 linux-headers-4.4.0-47-generic
so I did :
sudo sh cuda_7.5.18_linux.run --kernel-source-path=/usr/src/linux-headers-headers-4.4.0-47-generic
which failed again!
and this is the log file :
Using more to view the EULA.
Installing the NVIDIA display driver...
Verifying archive integrity... OK
Uncompressing NVIDIA Accelerated Graphics Driver for Linux-x86_64 352.39...........................................................................................................................................................................................................................................................
Welcome to the NVIDIA Software Installer for Unix/Linux
Detected 2 CPUs online; setting concurrency level to 2.
License accepted by command line option.
Installing NVIDIA driver version 352.39.
Running distribution scripts
Executing /usr/lib/nvidia/pre-install: [ ] 0%
Executing /usr/lib/nvidia/pre-install: [##############################] 100%
WARNING: One or more modprobe configuration files to disable Nouveau are
already present at:
/etc/modprobe.d/nvidia-installer-disable-nouveau.conf. Please be
sure you have rebooted your system since these files were written.
If you have rebooted, then Nouveau may be enabled for other
reasons, such as being included in the system initial ramdisk or
in your X configuration file. Please consult the NVIDIA driver
README and your Linux distribution's documentation for details on
how to correctly disable the Nouveau kernel driver.
ERROR: The kernel source path
'/usr/src/linux-headers-headers-4.4.0-47-generic' does not exist.
Please make sure you have installed the kernel source files for your
kernel and that they are properly configured; on Red Hat Linux
systems, for example, be sure you have the 'kernel-source' or
'kernel-devel' RPM installed. If you know the correct kernel source
files are installed, you may specify the kernel source path with the
'--kernel-source-path' command line option.
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.
The distribution-provided pre-install script failed! Are you sure you want
to continue? (Answer: Continue installation)
For some distributions, Nouveau can be disabled by adding a file in the
modprobe configuration directory. Would you like nvidia-installer to
attempt to create this modprobe file for you? (Answer: Yes)
One or more modprobe configuration files to disable Nouveau have been
written. For some distributions, this may be sufficient to disable
Nouveau; other distributions may require modification of the initial
ramdisk. Please reboot your system and attempt NVIDIA driver installation
again. Note if you later wish to reenable Nouveau, you will need to delete
these files: /etc/modprobe.d/nvidia-installer-disable-nouveau.conf
Performing CC sanity check with CC="/usr/bin/cc".
Using the kernel source path
'/usr/src/linux-headers-headers-4.4.0-47-generic' as specified by the
'--kernel-source-path' commandline option.
The driver installation is unable to locate the kernel source. Please make sure that the kernel source packages are installed and set up correctly.
If you know that the kernel source packages are installed and set up correctly, you may pass the location of the kernel source with the '--kernel-source-path' flag.
===========
= Summary =
===========
Driver: Installation Failed
Toolkit: Installation skipped
Samples: Installation skipped
Logfile is /tmp/cuda_install_9896.log
What do I do now?
Notice:
I need to say that I just repaired grub an hour ago, my windows 10 and ubuntu got messed up and I had to use boot-repair twice to get it working .
this is the last log in case it may be needed : First_log(messed up): http://paste.ubuntu.com/23543453/, SecondLog(fixed everything): http://paste.ubuntu.com/23543541/