How to install linux headers for Linode supplied kernel

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.

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct