Not able to install linux-headers on Kubernetes Nodes, it is available as unstable
root@lke12884-15916-5fa6707b1ec3:~# uname -a
Linux lke12884-15916-5fa6707b1ec3 5.8.0-1-cloud-amd64 #1 SMP Debian 5.8.7-1 (2020-09-05) x86_64 GNU/Linux
root@lke12884-15916-5fa6707b1ec3:~# uname -r
5.8.0-1-cloud-amd64
root@lke12884-15916-5fa6707b1ec3:~# apt search linux-headers-generic
Sorting... Done
Full Text Search... Done
root@lke12884-15916-5fa6707b1ec3:~# apt search linux-headers-$(uname -r)
Sorting... Done
Full Text Search... Done
linux-headers-5.8.0-1-cloud-amd64/unstable 5.8.7-1 amd64
Header files for Linux 5.8.0-1-cloud-amd64
root@lke12884-15916-5fa6707b1ec3:~# apt install linux-headers-$(uname -r)
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
linux-headers-5.8.0-1-cloud-amd64 : Depends: linux-compiler-gcc-10-x86 but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
root@lke12884-15916-5fa6707b1ec3:~# apt update
Ign:1 http://mirrors.linode.com/debian stretch InRelease
Get:2 http://mirrors.linode.com/debian-security stretch/updates InRelease [53.0 kB]
Get:3 http://mirrors.linode.com/debian stretch-updates InRelease [93.6 kB]
Hit:4 http://mirrors.linode.com/debian stretch Release
Get:5 https://download.docker.com/linux/debian stretch InRelease [44.8 kB]
Get:6 http://mirrors.linode.com/debian-security stretch/updates/main Sources [273 kB]
Get:7 http://mirrors.linode.com/debian-security stretch/updates/main amd64 Packages [615 kB]
Get:8 http://mirrors.linode.com/debian-security stretch/updates/main Translation-en [273 kB]
Get:10 http://deb.debian.org/debian unstable InRelease [146 kB]
Get:11 https://download.docker.com/linux/debian stretch/stable amd64 Packages [14.9 kB]
Get:12 http://deb.debian.org/debian unstable/main amd64 Packages.diff/Index [14.6 kB]
Get:13 http://deb.debian.org/debian unstable/main Translation-en.diff/Index [12.1 kB]
Ign:12 http://deb.debian.org/debian unstable/main amd64 Packages.diff/Index
Get:14 https://packages.cloud.google.com/apt kubernetes-xenial InRelease [8,993 B]
Ign:13 http://deb.debian.org/debian unstable/main Translation-en.diff/Index
Get:15 http://deb.debian.org/debian unstable/main amd64 Packages [8,498 kB]
Get:16 https://packages.cloud.google.com/apt kubernetes-xenial/main amd64 Packages [41.3 kB]
Get:17 http://deb.debian.org/debian unstable/main Translation-en [6,401 kB]
Fetched 16.5 MB in 5s (2,865 kB/s)
Reading package lists... Done
Building dependency tree
Reading state information... Done
23 packages can be upgraded. Run 'apt list --upgradable' to see them.
root@lke12884-15916-5fa6707b1ec3:~# apt install linux-headers-$(uname -r)
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package linux-headers-5.8.0-1-cloud-amd64
E: Couldn't find any package by glob 'linux-headers-5.8.0-1-cloud-amd64'
E: Couldn't find any package by regex 'linux-headers-5.8.0-1-cloud-amd64'
2 Replies
If I create a node using regular node creation I get different kernel and I can successfully upgrade / install linux headers.
root@li2028-229:~# uname -a
Linux li2028-229 4.9.0-13-amd64 #1 SMP Debian 4.9.228-1 (2020-07-05) x86_64 GNU/Linux
root@li2028-229:~# uname -r
4.9.0-13-amd64
root@li2028-229:~# apt search linux-headers-generic
Sorting... Done
Full Text Search... Done
root@li2028-229:~# apt update
Ign:1 http://mirrors.linode.com/debian stretch InRelease
Get:2 http://mirrors.linode.com/debian-security stretch/updates InRelease [53.0 kB]
Get:3 http://mirrors.linode.com/debian stretch-updates InRelease [93.6 kB]
Hit:4 http://mirrors.linode.com/debian stretch Release
Get:5 http://mirrors.linode.com/debian-security stretch/updates/main Sources [273 kB]
Get:6 http://mirrors.linode.com/debian-security stretch/updates/main amd64 Packages [615 kB]
Get:7 http://mirrors.linode.com/debian-security stretch/updates/main Translation-en [273 kB]
Fetched 1,308 kB in 0s (1,864 kB/s)
Reading package lists... Done
Building dependency tree
Reading state information... Done
30 packages can be upgraded. Run 'apt list --upgradable' to see them.
root@li2028-229:~# apt search linux-headers-generic
Sorting... Done
Full Text Search... Done
root@li2028-229:~# apt search linux-headers-$(uname -r)
Sorting... Done
Full Text Search... Done
linux-headers-4.9.0-13-amd64/oldstable 4.9.228-1 amd64
Header files for Linux 4.9.0-13-amd64
root@li2028-229:~# apt install linux-headers-$(uname -r)
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
binutils cpp-6 gcc-6 libasan3 libatomic1 libc-dev-bin libc6-dev libcc1-0 libcilkrts5 libgcc-6-dev libgomp1 libisl15 libitm1 liblsan0 libmpc3 libmpfr4 libmpx2 libquadmath0 libtsan0 libubsan0
linux-compiler-gcc-6-x86 linux-headers-4.9.0-13-common linux-kbuild-4.9 linux-libc-dev manpages-dev
Suggested packages:
binutils-doc gcc-6-locales gcc-6-multilib gcc-6-doc libgcc1-dbg libgomp1-dbg libitm1-dbg libatomic1-dbg libasan3-dbg liblsan0-dbg libtsan0-dbg libubsan0-dbg libcilkrts5-dbg libmpx2-dbg libquadmath0-dbg
glibc-doc
The following NEW packages will be installed:
binutils cpp-6 gcc-6 libasan3 libatomic1 libc-dev-bin libc6-dev libcc1-0 libcilkrts5 libgcc-6-dev libgomp1 libisl15 libitm1 liblsan0 libmpc3 libmpfr4 libmpx2 libquadmath0 libtsan0 libubsan0
linux-compiler-gcc-6-x86 linux-headers-4.9.0-13-amd64 linux-headers-4.9.0-13-common linux-kbuild-4.9 linux-libc-dev manpages-dev
0 upgraded, 26 newly installed, 0 to remove and 30 not upgraded.
Need to get 38.1 MB of archives.
After this operation, 170 MB of additional disk space will be used.
Do you want to continue? [Y/n]
Get:1 http://mirrors.linode.com/debian stretch/main amd64 binutils amd64 2.28-5 [3,770 kB]
Get:2 http://mirrors.linode.com/debian stretch/main amd64 libisl15 amd64 0.18-1 [564 kB]
Get:3 http://mirrors.linode.com/debian stretch/main amd64 libmpfr4 amd64 3.1.5-1 [556 kB]
Get:4 http://mirrors.linode.com/debian stretch/main amd64 libmpc3 amd64 1.0.3-1+b2 [39.9 kB]
Get:5 http://mirrors.linode.com/debian stretch/main amd64 cpp-6 amd64 6.3.0-18+deb9u1 [6,584 kB]
Get:6 http://mirrors.linode.com/debian stretch/main amd64 libcc1-0 amd64 6.3.0-18+deb9u1 [30.6 kB]
Get:7 http://mirrors.linode.com/debian stretch/main amd64 libgomp1 amd64 6.3.0-18+deb9u1 [73.3 kB]
Get:8 http://mirrors.linode.com/debian stretch/main amd64 libitm1 amd64 6.3.0-18+deb9u1 [27.3 kB]
Get:9 http://mirrors.linode.com/debian stretch/main amd64 libatomic1 amd64 6.3.0-18+deb9u1 [8,966 B]
Get:10 http://mirrors.linode.com/debian stretch/main amd64 libasan3 amd64 6.3.0-18+deb9u1 [311 kB]
Get:11 http://mirrors.linode.com/debian stretch/main amd64 liblsan0 amd64 6.3.0-18+deb9u1 [115 kB]
Get:12 http://mirrors.linode.com/debian stretch/main amd64 libtsan0 amd64 6.3.0-18+deb9u1 [257 kB]
Get:13 http://mirrors.linode.com/debian stretch/main amd64 libubsan0 amd64 6.3.0-18+deb9u1 [107 kB]
Get:14 http://mirrors.linode.com/debian stretch/main amd64 libcilkrts5 amd64 6.3.0-18+deb9u1 [40.5 kB]
Get:15 http://mirrors.linode.com/debian stretch/main amd64 libmpx2 amd64 6.3.0-18+deb9u1 [11.2 kB]
Get:16 http://mirrors.linode.com/debian stretch/main amd64 libquadmath0 amd64 6.3.0-18+deb9u1 [131 kB]
Get:17 http://mirrors.linode.com/debian stretch/main amd64 libgcc-6-dev amd64 6.3.0-18+deb9u1 [2,296 kB]
Get:18 http://mirrors.linode.com/debian stretch/main amd64 gcc-6 amd64 6.3.0-18+deb9u1 [6,900 kB]
Get:19 http://mirrors.linode.com/debian stretch/main amd64 libc-dev-bin amd64 2.24-11+deb9u4 [259 kB]
Get:20 http://mirrors.linode.com/debian-security stretch/updates/main amd64 linux-libc-dev amd64 4.9.240-2 [1,556 kB]
Get:21 http://mirrors.linode.com/debian stretch/main amd64 libc6-dev amd64 2.24-11+deb9u4 [2,364 kB]
Get:22 http://mirrors.linode.com/debian-security stretch/updates/main amd64 linux-compiler-gcc-6-x86 amd64 4.9.240-2 [738 kB]
Get:23 http://mirrors.linode.com/debian stretch/main amd64 linux-headers-4.9.0-13-common all 4.9.228-1 [7,774 kB]
Get:24 http://mirrors.linode.com/debian-security stretch/updates/main amd64 linux-kbuild-4.9 amd64 4.9.240-2 [946 kB]
Get:25 http://mirrors.linode.com/debian stretch/main amd64 linux-headers-4.9.0-13-amd64 amd64 4.9.228-1 [450 kB]
Get:26 http://mirrors.linode.com/debian stretch/main amd64 manpages-dev all 4.10-2 [2,145 kB]
Fetched 38.1 MB in 0s (59.4 MB/s)
Selecting previously unselected package binutils.
(Reading database ... 28409 files and directories currently installed.)
Preparing to unpack .../00-binutils_2.28-5_amd64.deb ...
Unpacking binutils (2.28-5) ...
Selecting previously unselected package libisl15:amd64.
Preparing to unpack .../01-libisl15_0.18-1_amd64.deb ...
Unpacking libisl15:amd64 (0.18-1) ...
Selecting previously unselected package libmpfr4:amd64.
Preparing to unpack .../02-libmpfr4_3.1.5-1_amd64.deb ...
Unpacking libmpfr4:amd64 (3.1.5-1) ...
Selecting previously unselected package libmpc3:amd64.
Preparing to unpack .../03-libmpc3_1.0.3-1+b2_amd64.deb ...
Unpacking libmpc3:amd64 (1.0.3-1+b2) ...
Selecting previously unselected package cpp-6.
Preparing to unpack .../04-cpp-6_6.3.0-18+deb9u1_amd64.deb ...
Unpacking cpp-6 (6.3.0-18+deb9u1) ...
Selecting previously unselected package libcc1-0:amd64.
Preparing to unpack .../05-libcc1-0_6.3.0-18+deb9u1_amd64.deb ...
Unpacking libcc1-0:amd64 (6.3.0-18+deb9u1) ...
Selecting previously unselected package libgomp1:amd64.
Preparing to unpack .../06-libgomp1_6.3.0-18+deb9u1_amd64.deb ...
Unpacking libgomp1:amd64 (6.3.0-18+deb9u1) ...
Selecting previously unselected package libitm1:amd64.
Preparing to unpack .../07-libitm1_6.3.0-18+deb9u1_amd64.deb ...
Unpacking libitm1:amd64 (6.3.0-18+deb9u1) ...
Selecting previously unselected package libatomic1:amd64.
Preparing to unpack .../08-libatomic1_6.3.0-18+deb9u1_amd64.deb ...
Unpacking libatomic1:amd64 (6.3.0-18+deb9u1) ...
Selecting previously unselected package libasan3:amd64.
Preparing to unpack .../09-libasan3_6.3.0-18+deb9u1_amd64.deb ...
Unpacking libasan3:amd64 (6.3.0-18+deb9u1) ...
Selecting previously unselected package liblsan0:amd64.
Preparing to unpack .../10-liblsan0_6.3.0-18+deb9u1_amd64.deb ...
Unpacking liblsan0:amd64 (6.3.0-18+deb9u1) ...
Selecting previously unselected package libtsan0:amd64.
Preparing to unpack .../11-libtsan0_6.3.0-18+deb9u1_amd64.deb ...
Unpacking libtsan0:amd64 (6.3.0-18+deb9u1) ...
Selecting previously unselected package libubsan0:amd64.
Preparing to unpack .../12-libubsan0_6.3.0-18+deb9u1_amd64.deb ...
Unpacking libubsan0:amd64 (6.3.0-18+deb9u1) ...
Selecting previously unselected package libcilkrts5:amd64.
Preparing to unpack .../13-libcilkrts5_6.3.0-18+deb9u1_amd64.deb ...
Unpacking libcilkrts5:amd64 (6.3.0-18+deb9u1) ...
Selecting previously unselected package libmpx2:amd64.
Preparing to unpack .../14-libmpx2_6.3.0-18+deb9u1_amd64.deb ...
Unpacking libmpx2:amd64 (6.3.0-18+deb9u1) ...
Selecting previously unselected package libquadmath0:amd64.
Preparing to unpack .../15-libquadmath0_6.3.0-18+deb9u1_amd64.deb ...
Unpacking libquadmath0:amd64 (6.3.0-18+deb9u1) ...
Selecting previously unselected package libgcc-6-dev:amd64.
Preparing to unpack .../16-libgcc-6-dev_6.3.0-18+deb9u1_amd64.deb ...
Unpacking libgcc-6-dev:amd64 (6.3.0-18+deb9u1) ...
Selecting previously unselected package gcc-6.
Preparing to unpack .../17-gcc-6_6.3.0-18+deb9u1_amd64.deb ...
Unpacking gcc-6 (6.3.0-18+deb9u1) ...
Selecting previously unselected package libc-dev-bin.
Preparing to unpack .../18-libc-dev-bin_2.24-11+deb9u4_amd64.deb ...
Unpacking libc-dev-bin (2.24-11+deb9u4) ...
Selecting previously unselected package linux-libc-dev:amd64.
Preparing to unpack .../19-linux-libc-dev_4.9.240-2_amd64.deb ...
Unpacking linux-libc-dev:amd64 (4.9.240-2) ...
Selecting previously unselected package libc6-dev:amd64.
Preparing to unpack .../20-libc6-dev_2.24-11+deb9u4_amd64.deb ...
Unpacking libc6-dev:amd64 (2.24-11+deb9u4) ...
Selecting previously unselected package linux-compiler-gcc-6-x86.
Preparing to unpack .../21-linux-compiler-gcc-6-x86_4.9.240-2_amd64.deb ...
Unpacking linux-compiler-gcc-6-x86 (4.9.240-2) ...
Selecting previously unselected package linux-headers-4.9.0-13-common.
Preparing to unpack .../22-linux-headers-4.9.0-13-common_4.9.228-1_all.deb ...
Unpacking linux-headers-4.9.0-13-common (4.9.228-1) ...
Selecting previously unselected package linux-kbuild-4.9.
Preparing to unpack .../23-linux-kbuild-4.9_4.9.240-2_amd64.deb ...
Unpacking linux-kbuild-4.9 (4.9.240-2) ...
Selecting previously unselected package linux-headers-4.9.0-13-amd64.
Preparing to unpack .../24-linux-headers-4.9.0-13-amd64_4.9.228-1_amd64.deb ...
Unpacking linux-headers-4.9.0-13-amd64 (4.9.228-1) ...
Selecting previously unselected package manpages-dev.
Preparing to unpack .../25-manpages-dev_4.10-2_all.deb ...
Unpacking manpages-dev (4.10-2) ...
Setting up libquadmath0:amd64 (6.3.0-18+deb9u1) ...
Setting up libgomp1:amd64 (6.3.0-18+deb9u1) ...
Setting up libatomic1:amd64 (6.3.0-18+deb9u1) ...
Setting up libcc1-0:amd64 (6.3.0-18+deb9u1) ...
Setting up libasan3:amd64 (6.3.0-18+deb9u1) ...
Setting up libcilkrts5:amd64 (6.3.0-18+deb9u1) ...
Setting up libubsan0:amd64 (6.3.0-18+deb9u1) ...
Setting up libtsan0:amd64 (6.3.0-18+deb9u1) ...
Setting up linux-libc-dev:amd64 (4.9.240-2) ...
Setting up liblsan0:amd64 (6.3.0-18+deb9u1) ...
Setting up linux-headers-4.9.0-13-common (4.9.228-1) ...
Setting up libmpx2:amd64 (6.3.0-18+deb9u1) ...
Setting up libisl15:amd64 (0.18-1) ...
Setting up linux-kbuild-4.9 (4.9.240-2) ...
Processing triggers for libc-bin (2.24-11+deb9u4) ...
Setting up libmpfr4:amd64 (3.1.5-1) ...
Processing triggers for man-db (2.7.6.1-2) ...
Setting up libmpc3:amd64 (1.0.3-1+b2) ...
Setting up binutils (2.28-5) ...
Setting up cpp-6 (6.3.0-18+deb9u1) ...
Setting up libc-dev-bin (2.24-11+deb9u4) ...
Setting up manpages-dev (4.10-2) ...
Setting up libc6-dev:amd64 (2.24-11+deb9u4) ...
Setting up libitm1:amd64 (6.3.0-18+deb9u1) ...
Setting up libgcc-6-dev:amd64 (6.3.0-18+deb9u1) ...
Setting up gcc-6 (6.3.0-18+deb9u1) ...
Setting up linux-compiler-gcc-6-x86 (4.9.240-2) ...
Setting up linux-headers-4.9.0-13-amd64 (4.9.228-1) ...
Processing triggers for libc-bin (2.24-11+deb9u4) ...
root@li2028-229:~# apt install linux-headers-$(uname -r)
Reading package lists... Done
Building dependency tree
Reading state information... Done
linux-headers-4.9.0-13-amd64 is already the newest version (4.9.228-1).
0 upgraded, 0 newly installed, 0 to remove and 30 not upgraded.
root@li2028-229:~#
How do I get this kind of kernel ? I tried changing the kernel but I couldn't see this kernel, all of them suffixed by linode<nn> like this - 4.9.80-x86_64-linode98, and I coudn't find the linux-headers for them</nn>