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
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
add a comment |
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
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
add a comment |
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
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
drivers nvidia kernel 16.04 cuda
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
add a comment |
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
add a comment |
2 Answers
2
active
oldest
votes
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”.
add a comment |
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.
New contributor
add a comment |
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
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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”.
add a comment |
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”.
add a comment |
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”.
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”.
answered Apr 6 '17 at 18:03
RonRon
111
111
add a comment |
add a comment |
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.
New contributor
add a comment |
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.
New contributor
add a comment |
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.
New contributor
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.
New contributor
edited 14 mins ago
New contributor
answered 20 mins ago
Joe LlerenaJoe Llerena
12
12
New contributor
New contributor
add a comment |
add a comment |
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.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
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