How to install linux headers for Linode supplied kernel
Linode
Linode Staff
I'm running kernel 5.1.11-x86_64-linode127. How can I install the linux headers for this kernel? They don't seem to be in any repository. I get output similar to the following:
$ sudo apt install linux-headers-$(uname -r)
[...]
E: Unable to locate package linux-headers-5.1.11-x86_64-linode127
E: Couldn't find any package by glob 'linux-headers-5.1.11-x86_64-linode127'
E: Couldn't find any package by regex 'linux-headers-5.1.11-x86_64-linode127'
1 Reply
This is a good question. Linode doesn't distribute linux headers for Linode kernels, which is why you can't install them using a package manager like apt
.
If you're looking to install linux headers, or any other kernel module, you'll need to use your distribution-supplied kernel. You can do so by changing your kernel to GRUB2
in the Linode Manager. Then, you'll be able to install the linux headers via apt
.