![Linux 内核升级后安装匹配的 Linux 头文件](https://linux22.com/image/174904/Linux%20%E5%86%85%E6%A0%B8%E5%8D%87%E7%BA%A7%E5%90%8E%E5%AE%89%E8%A3%85%E5%8C%B9%E9%85%8D%E7%9A%84%20Linux%20%E5%A4%B4%E6%96%87%E4%BB%B6.png)
我最近将 Linux 内核从 4.19.20 升级到 5.5.0-0.bpo.2-amd64。
sudo apt install linux-headers-$(uname -r)
输出:
Reading package lists... Done
Building dependency tree
Reading state information... Done
linux-headers-5.5.0-0.bpo.2-amd64 is already the newest version (5.5.17-1~bpo10+1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
ls -l /usr/src/linux-headers-$(uname -r)
给我:
total 1432
drwxr-xr-x 3 root root 4096 6月 10 23:54 arch
drwxr-xr-x 4 root root 4096 6月 10 23:54 include
-rw-r--r-- 1 root root 61 4月 23 23:15 Makefile
-rw-r--r-- 1 root root 1453072 4月 23 23:15 Module.symvers
lrwxrwxrwx 1 root root 34 4月 23 23:15 scripts -> ../../lib/linux-kbuild-5.5/scripts
lrwxrwxrwx 1 root root 32 4月 23 23:15 tools -> ../../lib/linux-kbuild-5.5/tools
这是否意味着匹配的Linux头文件已经安装了?
答案1
是的,这意味着标头已安装。
另请参阅build
和source
符号链接/lib/modules/$(uname -r)
(这些是重要位置)。