How to install kernel-headers in LKE nodes?
Hi everyone,
Any idea where can I find the linux-headers associated with the kernel being utilized by the current LKE nodes? Debian PPA's only provide 5.10.0-8
but we're running 5.10.0-7
here …
Thanks!
# sudo apt-get update && sudo apt-get install linux-headers-$(uname -r)
sudo: unable to resolve host lke37915-60200-6147d334f89f
Ign:1 http://mirrors.linode.com/debian stretch InRelease
Hit:2 http://mirrors.linode.com/debian-security stretch/updates InRelease
Hit:3 http://mirrors.linode.com/debian stretch-updates InRelease
Get:4 http://mirrors.linode.com/debian unstable InRelease [165 kB]
Hit:5 http://mirrors.linode.com/debian stretch Release
Hit:6 https://download.docker.com/linux/debian stretch InRelease
Get:8 http://mirrors.linode.com/debian unstable/main amd64 Packages.diff/Index [63.6 kB]
Hit:7 https://packages.cloud.google.com/apt kubernetes-xenial InRelease
Get:10 http://mirrors.linode.com/debian unstable/main Translation-en.diff/Index [63.6 kB]
Get:11 http://mirrors.linode.com/debian unstable/main amd64 Packages T-2021-09-20-0203.11-F-2021-09-20-0203.11.pdiff [39.4 kB]
Get:11 http://mirrors.linode.com/debian unstable/main amd64 Packages T-2021-09-20-0203.11-F-2021-09-20-0203.11.pdiff [39.4 kB]
Get:12 http://mirrors.linode.com/debian unstable/main Translation-en T-2021-09-20-0203.11-F-2021-09-20-0203.11.pdiff [499 B]
Get:12 http://mirrors.linode.com/debian unstable/main Translation-en T-2021-09-20-0203.11-F-2021-09-20-0203.11.pdiff [499 B]
Fetched 332 kB in 3s (108 kB/s)
Reading package lists... Done
sudo: unable to resolve host lke37915-60200-6147d334f89f
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package linux-headers-5.10.0-7-cloud-amd64
E: Couldn't find any package by glob 'linux-headers-5.10.0-7-cloud-amd64'
E: Couldn't find any package by regex 'linux-headers-5.10.0-7-cloud-amd64'
# apt-cache search linux-headers
...
linux-headers-5.10.0-8-amd64 - Header files for Linux 5.10.0-8-amd64
...
1 Reply
I know this response is a bit late, but I wanted to inform you that Linode kernels come pre-compiled, meaning we do not provide headers for them, and you are not able to modify the kernel in any way. If you're looking to install headers for a kernel then you'll need to install a distribution supplied kernel, which is covered here:
I'm not an expert on how to utilize this kernel to achieve the results you're looking for, but I was able to find some relevant resources that you may find beneficial to locate the kernel being utilized by your nodes:
- How to install linux headers for Linode supplied kernel (18496) | Linode Questions
- Kernel headers for latest kernel on Debian 9.9 (18410) | Linode Questions
- Linode Kernel Headers - Server Fault
Hopefully, these resources point you in the right direction!