Kernel Headers not found error on installing NVIDIA cuda drivers on Ubuntu 16.04 LTSUpdates fail due to “/etc/default/grub: splash”: not found” error Wacom pen small tablet ctl-490/b isn't recongnizedopenjdk-7-jdk (package)Unmet dependencies while trying to install Unity Tweak ToolAPT is stuck because it can't remove an old kernelTrouble installing Nvidia drivers + Cuda (Ubuntu 16.04) — unable to locate the kernel source errorUnable to update kernel (or anything), dpkg returns error 1Installing VMware on Ubuntu Linux (Chromebook)Ubuntu 16.04 can't install any softwareHow to install gcj on Ubuntu 16.04

PTIJ: Halachic Status of Breadboards on Pesach

Is there a place to find the pricing for things not mentioned in the PHB? (non-magical)

As a new Ubuntu desktop 18.04 LTS user, do I need to use ufw for a firewall or is iptables sufficient?

Could this Scherzo by Beethoven be considered to be a fugue?

Is it true that good novels will automatically sell themselves on Amazon (and so on) and there is no need for one to waste time promoting?

Is there a hypothetical scenario that would make Earth uninhabitable for humans, but not for (the majority of) other animals?

How to pronounce "I ♥ Huckabees"?

Are Roman Catholic priests ever addressed as pastor

Do I need life insurance if I can cover my own funeral costs?

How do you talk to someone whose loved one is dying?

Are all passive ability checks floors for active ability checks?

What is the adequate fee for a reveal operation?

PTIJ: Who should I vote for? (21st Knesset Edition)

Why Choose Less Effective Armour Types?

Relationship between sampajanna definitions in SN 47.2 and SN 47.35

Official degrees of earth’s rotation per day

Why did it take so long to abandon sail after steamships were demonstrated?

The German vowel “a” changes to the English “i”

Why do tuner card drivers fail to build after kernel update to 4.4.0-143-generic?

When to use a slotted vs. solid turner?

What exactly is this small puffer fish doing and how did it manage to accomplish such a feat?

How difficult is it to simply disable/disengage the MCAS on Boeing 737 Max 8 & 9 Aircraft?

Did Ender ever learn that he killed Stilson and/or Bonzo?

How are passwords stolen from companies if they only store hashes?



Kernel Headers not found error on installing NVIDIA cuda drivers on Ubuntu 16.04 LTS


Updates fail due to “/etc/default/grub: splash”: not found” error Wacom pen small tablet ctl-490/b isn't recongnizedopenjdk-7-jdk (package)Unmet dependencies while trying to install Unity Tweak ToolAPT is stuck because it can't remove an old kernelTrouble installing Nvidia drivers + Cuda (Ubuntu 16.04) — unable to locate the kernel source errorUnable to update kernel (or anything), dpkg returns error 1Installing VMware on Ubuntu Linux (Chromebook)Ubuntu 16.04 can't install any softwareHow to install gcj on Ubuntu 16.04













2















just tired to install the NVIDIA cuda drivers on Ubuntu 16.04 (unsupported) but I get the following error:




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.




But the headers are installed




sudo apt install linux-headers-generic-lts-wily Reading package lists... Done Building dependency tree Reading state information...


Done linux-headers-generic-lts-wily is already the newest version
(4.4.0.21.22). 0 upgraded, 0 newly installed, 0 to remove and 30 not
upgraded.



sudo apt install linux-headers-generic Reading package lists... Done Building dependency tree Reading state information... Done


linux-headers-generic is already the newest version (4.4.0.21.22). 0
upgraded, 0 newly installed, 0 to remove and 30 not upgraded.




The kernel version seems to be correct as well




uname -r 4.4.0-21-generic



Any ideas?










share|improve this question






















  • Can you post more details about the DKMS build failure? I believe there will be a build.log file somewhere which shows the exact issue it ran into. Thanks.

    – Chris J Arges
    Jun 10 '16 at 16:05















2















just tired to install the NVIDIA cuda drivers on Ubuntu 16.04 (unsupported) but I get the following error:




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.




But the headers are installed




sudo apt install linux-headers-generic-lts-wily Reading package lists... Done Building dependency tree Reading state information...


Done linux-headers-generic-lts-wily is already the newest version
(4.4.0.21.22). 0 upgraded, 0 newly installed, 0 to remove and 30 not
upgraded.



sudo apt install linux-headers-generic Reading package lists... Done Building dependency tree Reading state information... Done


linux-headers-generic is already the newest version (4.4.0.21.22). 0
upgraded, 0 newly installed, 0 to remove and 30 not upgraded.




The kernel version seems to be correct as well




uname -r 4.4.0-21-generic



Any ideas?










share|improve this question






















  • Can you post more details about the DKMS build failure? I believe there will be a build.log file somewhere which shows the exact issue it ran into. Thanks.

    – Chris J Arges
    Jun 10 '16 at 16:05













2












2








2


1






just tired to install the NVIDIA cuda drivers on Ubuntu 16.04 (unsupported) but I get the following error:




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.




But the headers are installed




sudo apt install linux-headers-generic-lts-wily Reading package lists... Done Building dependency tree Reading state information...


Done linux-headers-generic-lts-wily is already the newest version
(4.4.0.21.22). 0 upgraded, 0 newly installed, 0 to remove and 30 not
upgraded.



sudo apt install linux-headers-generic Reading package lists... Done Building dependency tree Reading state information... Done


linux-headers-generic is already the newest version (4.4.0.21.22). 0
upgraded, 0 newly installed, 0 to remove and 30 not upgraded.




The kernel version seems to be correct as well




uname -r 4.4.0-21-generic



Any ideas?










share|improve this question














just tired to install the NVIDIA cuda drivers on Ubuntu 16.04 (unsupported) but I get the following error:




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.




But the headers are installed




sudo apt install linux-headers-generic-lts-wily Reading package lists... Done Building dependency tree Reading state information...


Done linux-headers-generic-lts-wily is already the newest version
(4.4.0.21.22). 0 upgraded, 0 newly installed, 0 to remove and 30 not
upgraded.



sudo apt install linux-headers-generic Reading package lists... Done Building dependency tree Reading state information... Done


linux-headers-generic is already the newest version (4.4.0.21.22). 0
upgraded, 0 newly installed, 0 to remove and 30 not upgraded.




The kernel version seems to be correct as well




uname -r 4.4.0-21-generic



Any ideas?







drivers nvidia kernel 16.04 cuda






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked May 4 '16 at 19:24









user3656912user3656912

1113




1113












  • Can you post more details about the DKMS build failure? I believe there will be a build.log file somewhere which shows the exact issue it ran into. Thanks.

    – Chris J Arges
    Jun 10 '16 at 16:05

















  • Can you post more details about the DKMS build failure? I believe there will be a build.log file somewhere which shows the exact issue it ran into. Thanks.

    – Chris J Arges
    Jun 10 '16 at 16:05
















Can you post more details about the DKMS build failure? I believe there will be a build.log file somewhere which shows the exact issue it ran into. Thanks.

– Chris J Arges
Jun 10 '16 at 16:05





Can you post more details about the DKMS build failure? I believe there will be a build.log file somewhere which shows the exact issue it ran into. Thanks.

– Chris J Arges
Jun 10 '16 at 16:05










2 Answers
2






active

oldest

votes


















0














I had the same problem. The solution was to turn off secure boot in the BIOS. For my ASUS motherboard, the procedure was: BIOS -> Advanced Mode -> Boot >- Secure Boot -> Key Management -> “Clear Secure Boot keys”.






share|improve this answer






























    0














    I used what Ron says and I cleaned kernel headers, and then I just added the one that requires Nvidia next to the current one:
    remove kernels



    Remove all existing nvidia packages:



    sudo apt-get remove nvidia* && sudo apt autoremove


    I installed some packages to compile the kernel (4.4.0):



    sudo apt-get install dkms build-essential linux-headers-generic


    Now block and disable the driver of the new Nouveau kernel:



    sudo nano /etc/modprobe.d/blacklist.conf


    Insert the following lines at the end of the blacklist.conf:



    blacklist nouveau
    blacklist lbm-nouveau
    options nouveau modeset=0
    alias nouveau off
    alias lbm-nouveau off


    I disabled the kernel nouveau:



    echo options nouveau modeset=0 | sudo tee -a /etc/modprobe.d/nouveau-kms.conf


    Build the new kernel



    sudo update-initramfs -u


    Finally reboot



    I have the ubuntu: 16.04.6
    with kernel 4.15.0-46-generic



    sudo sh cuda_9.0.176_384.81_linux.run --override
    sudo service lightdm start
    sudo reboot


    I also had problems with the login, it worked for me:



    sudo ubuntu-drivers autoinstall
    sudo reboot


    add them to the end of .bashrc file:



    sudo nano .bashrc



    export PATH=/usr/local/cuda-9.0/bin$PATH:+:$PATH
    export LD_LIBRARY_PATH=/usr/local/cuda-9.0/lib64$LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH


    it worked.






    share|improve this answer










    New contributor




    Joe Llerena is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.



















      Your Answer








      StackExchange.ready(function()
      var channelOptions =
      tags: "".split(" "),
      id: "89"
      ;
      initTagRenderer("".split(" "), "".split(" "), channelOptions);

      StackExchange.using("externalEditor", function()
      // Have to fire editor after snippets, if snippets enabled
      if (StackExchange.settings.snippets.snippetsEnabled)
      StackExchange.using("snippets", function()
      createEditor();
      );

      else
      createEditor();

      );

      function createEditor()
      StackExchange.prepareEditor(
      heartbeatType: 'answer',
      autoActivateHeartbeat: false,
      convertImagesToLinks: true,
      noModals: true,
      showLowRepImageUploadWarning: true,
      reputationToPostImages: 10,
      bindNavPrevention: true,
      postfix: "",
      imageUploader:
      brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
      contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
      allowUrls: true
      ,
      onDemand: true,
      discardSelector: ".discard-answer"
      ,immediatelyShowMarkdownHelp:true
      );



      );













      draft saved

      draft discarded


















      StackExchange.ready(
      function ()
      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f767665%2fkernel-headers-not-found-error-on-installing-nvidia-cuda-drivers-on-ubuntu-16-04%23new-answer', 'question_page');

      );

      Post as a guest















      Required, but never shown

























      2 Answers
      2






      active

      oldest

      votes








      2 Answers
      2






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes









      0














      I had the same problem. The solution was to turn off secure boot in the BIOS. For my ASUS motherboard, the procedure was: BIOS -> Advanced Mode -> Boot >- Secure Boot -> Key Management -> “Clear Secure Boot keys”.






      share|improve this answer



























        0














        I had the same problem. The solution was to turn off secure boot in the BIOS. For my ASUS motherboard, the procedure was: BIOS -> Advanced Mode -> Boot >- Secure Boot -> Key Management -> “Clear Secure Boot keys”.






        share|improve this answer

























          0












          0








          0







          I had the same problem. The solution was to turn off secure boot in the BIOS. For my ASUS motherboard, the procedure was: BIOS -> Advanced Mode -> Boot >- Secure Boot -> Key Management -> “Clear Secure Boot keys”.






          share|improve this answer













          I had the same problem. The solution was to turn off secure boot in the BIOS. For my ASUS motherboard, the procedure was: BIOS -> Advanced Mode -> Boot >- Secure Boot -> Key Management -> “Clear Secure Boot keys”.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Apr 6 '17 at 18:03









          RonRon

          111




          111























              0














              I used what Ron says and I cleaned kernel headers, and then I just added the one that requires Nvidia next to the current one:
              remove kernels



              Remove all existing nvidia packages:



              sudo apt-get remove nvidia* && sudo apt autoremove


              I installed some packages to compile the kernel (4.4.0):



              sudo apt-get install dkms build-essential linux-headers-generic


              Now block and disable the driver of the new Nouveau kernel:



              sudo nano /etc/modprobe.d/blacklist.conf


              Insert the following lines at the end of the blacklist.conf:



              blacklist nouveau
              blacklist lbm-nouveau
              options nouveau modeset=0
              alias nouveau off
              alias lbm-nouveau off


              I disabled the kernel nouveau:



              echo options nouveau modeset=0 | sudo tee -a /etc/modprobe.d/nouveau-kms.conf


              Build the new kernel



              sudo update-initramfs -u


              Finally reboot



              I have the ubuntu: 16.04.6
              with kernel 4.15.0-46-generic



              sudo sh cuda_9.0.176_384.81_linux.run --override
              sudo service lightdm start
              sudo reboot


              I also had problems with the login, it worked for me:



              sudo ubuntu-drivers autoinstall
              sudo reboot


              add them to the end of .bashrc file:



              sudo nano .bashrc



              export PATH=/usr/local/cuda-9.0/bin$PATH:+:$PATH
              export LD_LIBRARY_PATH=/usr/local/cuda-9.0/lib64$LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH


              it worked.






              share|improve this answer










              New contributor




              Joe Llerena is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
              Check out our Code of Conduct.
























                0














                I used what Ron says and I cleaned kernel headers, and then I just added the one that requires Nvidia next to the current one:
                remove kernels



                Remove all existing nvidia packages:



                sudo apt-get remove nvidia* && sudo apt autoremove


                I installed some packages to compile the kernel (4.4.0):



                sudo apt-get install dkms build-essential linux-headers-generic


                Now block and disable the driver of the new Nouveau kernel:



                sudo nano /etc/modprobe.d/blacklist.conf


                Insert the following lines at the end of the blacklist.conf:



                blacklist nouveau
                blacklist lbm-nouveau
                options nouveau modeset=0
                alias nouveau off
                alias lbm-nouveau off


                I disabled the kernel nouveau:



                echo options nouveau modeset=0 | sudo tee -a /etc/modprobe.d/nouveau-kms.conf


                Build the new kernel



                sudo update-initramfs -u


                Finally reboot



                I have the ubuntu: 16.04.6
                with kernel 4.15.0-46-generic



                sudo sh cuda_9.0.176_384.81_linux.run --override
                sudo service lightdm start
                sudo reboot


                I also had problems with the login, it worked for me:



                sudo ubuntu-drivers autoinstall
                sudo reboot


                add them to the end of .bashrc file:



                sudo nano .bashrc



                export PATH=/usr/local/cuda-9.0/bin$PATH:+:$PATH
                export LD_LIBRARY_PATH=/usr/local/cuda-9.0/lib64$LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH


                it worked.






                share|improve this answer










                New contributor




                Joe Llerena is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                Check out our Code of Conduct.






















                  0












                  0








                  0







                  I used what Ron says and I cleaned kernel headers, and then I just added the one that requires Nvidia next to the current one:
                  remove kernels



                  Remove all existing nvidia packages:



                  sudo apt-get remove nvidia* && sudo apt autoremove


                  I installed some packages to compile the kernel (4.4.0):



                  sudo apt-get install dkms build-essential linux-headers-generic


                  Now block and disable the driver of the new Nouveau kernel:



                  sudo nano /etc/modprobe.d/blacklist.conf


                  Insert the following lines at the end of the blacklist.conf:



                  blacklist nouveau
                  blacklist lbm-nouveau
                  options nouveau modeset=0
                  alias nouveau off
                  alias lbm-nouveau off


                  I disabled the kernel nouveau:



                  echo options nouveau modeset=0 | sudo tee -a /etc/modprobe.d/nouveau-kms.conf


                  Build the new kernel



                  sudo update-initramfs -u


                  Finally reboot



                  I have the ubuntu: 16.04.6
                  with kernel 4.15.0-46-generic



                  sudo sh cuda_9.0.176_384.81_linux.run --override
                  sudo service lightdm start
                  sudo reboot


                  I also had problems with the login, it worked for me:



                  sudo ubuntu-drivers autoinstall
                  sudo reboot


                  add them to the end of .bashrc file:



                  sudo nano .bashrc



                  export PATH=/usr/local/cuda-9.0/bin$PATH:+:$PATH
                  export LD_LIBRARY_PATH=/usr/local/cuda-9.0/lib64$LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH


                  it worked.






                  share|improve this answer










                  New contributor




                  Joe Llerena is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                  Check out our Code of Conduct.










                  I used what Ron says and I cleaned kernel headers, and then I just added the one that requires Nvidia next to the current one:
                  remove kernels



                  Remove all existing nvidia packages:



                  sudo apt-get remove nvidia* && sudo apt autoremove


                  I installed some packages to compile the kernel (4.4.0):



                  sudo apt-get install dkms build-essential linux-headers-generic


                  Now block and disable the driver of the new Nouveau kernel:



                  sudo nano /etc/modprobe.d/blacklist.conf


                  Insert the following lines at the end of the blacklist.conf:



                  blacklist nouveau
                  blacklist lbm-nouveau
                  options nouveau modeset=0
                  alias nouveau off
                  alias lbm-nouveau off


                  I disabled the kernel nouveau:



                  echo options nouveau modeset=0 | sudo tee -a /etc/modprobe.d/nouveau-kms.conf


                  Build the new kernel



                  sudo update-initramfs -u


                  Finally reboot



                  I have the ubuntu: 16.04.6
                  with kernel 4.15.0-46-generic



                  sudo sh cuda_9.0.176_384.81_linux.run --override
                  sudo service lightdm start
                  sudo reboot


                  I also had problems with the login, it worked for me:



                  sudo ubuntu-drivers autoinstall
                  sudo reboot


                  add them to the end of .bashrc file:



                  sudo nano .bashrc



                  export PATH=/usr/local/cuda-9.0/bin$PATH:+:$PATH
                  export LD_LIBRARY_PATH=/usr/local/cuda-9.0/lib64$LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH


                  it worked.







                  share|improve this answer










                  New contributor




                  Joe Llerena is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                  Check out our Code of Conduct.









                  share|improve this answer



                  share|improve this answer








                  edited 14 mins ago





















                  New contributor




                  Joe Llerena is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                  Check out our Code of Conduct.









                  answered 20 mins ago









                  Joe LlerenaJoe Llerena

                  12




                  12




                  New contributor




                  Joe Llerena is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                  Check out our Code of Conduct.





                  New contributor





                  Joe Llerena is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                  Check out our Code of Conduct.






                  Joe Llerena is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                  Check out our Code of Conduct.



























                      draft saved

                      draft discarded
















































                      Thanks for contributing an answer to Ask Ubuntu!


                      • Please be sure to answer the question. Provide details and share your research!

                      But avoid


                      • Asking for help, clarification, or responding to other answers.

                      • Making statements based on opinion; back them up with references or personal experience.

                      To learn more, see our tips on writing great answers.




                      draft saved


                      draft discarded














                      StackExchange.ready(
                      function ()
                      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f767665%2fkernel-headers-not-found-error-on-installing-nvidia-cuda-drivers-on-ubuntu-16-04%23new-answer', 'question_page');

                      );

                      Post as a guest















                      Required, but never shown





















































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown

































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown







                      Popular posts from this blog

                      Möglingen Índice Localización Historia Demografía Referencias Enlaces externos Menú de navegación48°53′18″N 9°07′45″E / 48.888333333333, 9.129166666666748°53′18″N 9°07′45″E / 48.888333333333, 9.1291666666667Sitio web oficial Mapa de Möglingen«Gemeinden in Deutschland nach Fläche, Bevölkerung und Postleitzahl am 30.09.2016»Möglingen

                      Virtualbox - Configuration error: Querying “UUID” failed (VERR_CFGM_VALUE_NOT_FOUND)“VERR_SUPLIB_WORLD_WRITABLE” error when trying to installing OS in virtualboxVirtual Box Kernel errorFailed to open a seesion for the virtual machineFailed to open a session for the virtual machineUbuntu 14.04 LTS Virtualbox errorcan't use VM VirtualBoxusing virtualboxI can't run Linux-64 Bit on VirtualBoxUnable to insert the virtual optical disk (VBoxguestaddition) in virtual machine for ubuntu server in win 10VirtuaBox in Ubuntu 18.04 Issues with Win10.ISO Installation

                      Torre de la Isleta Índice Véase también Referencias Bibliografía Enlaces externos Menú de navegación38°25′58″N 0°23′02″O / 38.43277778, -0.3838888938°25′58″N 0°23′02″O / 38.43277778, -0.38388889Torre de la Illeta de l’Horta o Torre Saleta. Base de datos de bienes inmuebles. Patrimonio Cultural. Secretaría de Estado de CulturaFicha BIC Torre de la Illeta de l’Horta. Dirección General de Patrimonio Cultural. Generalitat ValencianaLugares de interés. Ayuntamiento del CampelloTorre de la Isleta en CastillosNet.org