"apt-cache search" 找不到 "linux-header-5.8.0-2-amd64"
"apt-cache search" can't find "linux-header-5.8.0-2-amd64"
我的 OS 是带有内核 5.8.0-2-amd64 的 debian 11。
我需要“linux-headers-5.8.0-2-amd64”来制作我自己的内核模块。
然后,我用“apt-cache search”和“apt search”都找不着。
我在哪里可以下载这个 header?
以下是“/etc/apt/sources.list”的内容:
deb http://deb.debian.org/debian bullseye main contrib non-free
deb-src http://deb.debian.org/debian bullseye main contrib non-free
deb http://deb.debian.org/debian bullseye-updates main contrib non-free
deb-src http://deb.debian.org/debian bullseye-updates main contrib non-free
您必须下载 header 并安装它们。
http://ubuntuhandbook.org/index.php/2020/08/install-linux-kernel-5-8-ubuntu/
这里有一个很好的教程,说明如何编译内核和下载 headers。在较新的版本中,它是 linux-headers-amd64
。您可以在您的版本中尝试此操作以获得适合您的版本的 headers。
我检查了版本。因此,您应该对存储库中的内核进行 dist-upgrade。
https://packages.debian.org/bullseye/linux-headers-amd64
对于 Debian 11,它是 5.9,如果可能的话,您可以从存储库安装 headers。
我的 OS 是带有内核 5.8.0-2-amd64 的 debian 11。 我需要“linux-headers-5.8.0-2-amd64”来制作我自己的内核模块。 然后,我用“apt-cache search”和“apt search”都找不着。 我在哪里可以下载这个 header?
以下是“/etc/apt/sources.list”的内容:
deb http://deb.debian.org/debian bullseye main contrib non-free
deb-src http://deb.debian.org/debian bullseye main contrib non-free
deb http://deb.debian.org/debian bullseye-updates main contrib non-free
deb-src http://deb.debian.org/debian bullseye-updates main contrib non-free
您必须下载 header 并安装它们。
http://ubuntuhandbook.org/index.php/2020/08/install-linux-kernel-5-8-ubuntu/
这里有一个很好的教程,说明如何编译内核和下载 headers。在较新的版本中,它是 linux-headers-amd64
。您可以在您的版本中尝试此操作以获得适合您的版本的 headers。
我检查了版本。因此,您应该对存储库中的内核进行 dist-upgrade。
https://packages.debian.org/bullseye/linux-headers-amd64
对于 Debian 11,它是 5.9,如果可能的话,您可以从存储库安装 headers。