instalando o Cuda 7.5 falha no ubuntu 14.0.4.5 com a instalação do driver de erro não é possível localizar a origem do kernel

0

Estou tentando instalar o cuda toolkit junto com seus drivers. Eu baixei o cuda_7.5.18_linux.run e executei estes comandos para instalá-lo:

Ctrl_Alt-F1 :
sudo service lightdm stop
cd to media/username/store/nvidia
sudo sh cuda_7.5.18_linux.run

isso falhou na primeira vez e me disse para reiniciar. Este é o primeiro registro .
Se você olhar para os logs, você pode ver que todos os edifícios parecem estar indo bem até que diz:

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

Eu reiniciei e nada aconteceu Eu tentei

sudo init 3 
sudo sh cuda_7.5.18_linux.run

e novamente sem sorte. continuava dizendo:

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.

Então, desta vez eu escrevi:

hossein@hossein:/tmp$ uname -r
4.4.0-47-generic

e foi para usr / scr / e é assim que parece:

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

então eu fiz:

sudo sh cuda_7.5.18_linux.run --kernel-source-path=/usr/src/linux-headers-headers-4.4.0-47-generic

que falhou novamente! e este é o arquivo de log:

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

O que eu faço agora?
Aviso:
Eu preciso dizer que eu apenas consertei grub uma hora atrás, meu windows 10 e Ubuntu ficou bagunçado e eu tive que usar boot-repair duas vezes para fazê-lo funcionar. este é o último log caso seja necessário: First_log (desarrumada) , SecondLog(fixado tudo)

Atualização:
Eu notei que anteriormente, digitado errado o caminho de origem do kernel, quando eu o corrigi eu recebi estes erros: Muito obrigado, agora recebo este erro que o registro completo pode ser visto aqui :

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

       suggestions on fixing installation problems in the README available

       on the Linux driver download page at www.nvidia.com.

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_3595.log

e este é o arquivo de log nvidia-installer :
estes são os erros no final:

   /tmp/selfgz3643/NVIDIA-Linux-x86_64-352.39/kernel/nv-procfs.c: In function ‘nv_procfs_read_registry’:
   /tmp/selfgz3643/NVIDIA-Linux-x86_64-352.39/kernel/nv-procfs.c:362:1: warning: control reaches end of non-void function [-Wreturn-type]
    }
    ^
   make[2]: *** [/tmp/selfgz3643/NVIDIA-Linux-x86_64-352.39/kernel/nv-procfs.o] Error 1
   make[2]: *** Waiting for unfinished jobs....
     if [ "-pg" = "-pg" ]; then if [ /tmp/selfgz3643/NVIDIA-Linux-x86_64-352.39/kernel/nv-usermap.o != "scripts/mod/empty.o" ]; then ./scripts/recordmcount  "/tmp/selfgz3643/NVIDIA-Linux-x86_64-352.39/kernel/nv-usermap.o"; fi; fi;
   make[1]: *** [_module_/tmp/selfgz3643/NVIDIA-Linux-x86_64-352.39/kernel] Error 2
   make[1]: Leaving directory '/usr/src/linux-headers-4.4.0-47-generic'
  NVIDIA: left KBUILD.
  nvidia.ko failed to build!
  make: *** [module] Error 1
-> Error.
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 suggestions on fixing installation problems in the README available on the Linux driver download page at www.nvidia.com.

Eu também não tenho nenhuma partição de swap, ou arquivo de troca (eu tenho 20Gig de RAM), pensei que talvez isso possa ter qualquer implicação ou causar alguma complicação estranha?
O que eu faço agora?

    
por Breeze 27.11.2016 / 18:00

0 respostas