我正在尝试在我的Raspberry Pi上安装linux-headers包,但是没有找到任何成功。
我试过了:
$ sudo apt-get install linux-headers$(uname -r)
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package linux-headers-4.4.10
E: Couldn't find any package by regex 'linux-headers-4.4.10'
和
$ sudo apt-cache search linux-headers
linux-headers-3.10-3-all - All header files for Linux 3.10 (meta-package)
linux-headers-3.10-3-all-armhf - All header files for Linux 3.10 (meta-package)
linux-headers-3.10-3-common - Common header files for Linux 3.10-3
linux-headers-3.10-3-rpi - Header files for Linux 3.10-3-rpi
linux-headers-3.12-1-all - All header files for Linux 3.12 (meta-package)
linux-headers-3.12-1-all-armhf - All header files for Linux 3.12 (meta-package)
linux-headers-3.12-1-common - Common header files for Linux 3.12-1
linux-headers-3.12-1-rpi - Header files for Linux 3.12-1-rpi
linux-headers-3.16.0-4-all - All header files for Linux 3.16 (meta-package)
linux-headers-3.16.0-4-all-armhf - All header files for Linux 3.16 (meta-package)
linux-headers-3.16.0-4-common - Common header files for Linux 3.16.0-4
linux-headers-3.16.0-4-rpi - Header files for Linux 3.16.0-4-rpi
linux-headers-3.18.0-trunk-all - All header files for Linux 3.18 (meta-package)
linux-headers-3.18.0-trunk-all-armhf - All header files for Linux 3.18 (meta-package)
linux-headers-3.18.0-trunk-common - Common header files for Linux 3.18.0-trunk
linux-headers-3.18.0-trunk-rpi - Header files for Linux 3.18.0-trunk-rpi
linux-headers-3.18.0-trunk-rpi2 - Header files for Linux 3.18.0-trunk-rpi2
linux-headers-3.6-trunk-all - All header files for Linux 3.6 (meta-package)
linux-headers-3.6-trunk-all-armhf - All header files for Linux 3.6 (meta-package)
linux-headers-3.6-trunk-common - Common header files for Linux 3.6-trunk
linux-headers-3.6-trunk-rpi - Header files for Linux 3.6-trunk-rpi
linux-headers-4.4.0-1-all - All header files for Linux 4.4 (meta-package)
linux-headers-4.4.0-1-all-armhf - All header files for Linux 4.4 (meta-package)
linux-headers-4.4.0-1-common - Common header files for Linux 4.4.0-1
linux-headers-4.4.0-1-rpi - Header files for Linux 4.4.0-1-rpi
linux-headers-4.4.0-1-rpi2 - Header files for Linux 4.4.0-1-rpi2
linux-headers-rpi - Header files for Linux rpi configuration (meta-package)
linux-headers-rpi-rpfv - This metapackage will pull in the headers for the raspbian kernel for the
linux-headers-rpi2-rpfv - This metapackage will pull in the headers for the raspbian kernel for the
是否没有有效的linux-headers包可用?我应该尝试安装一个linux-headers-4.4.0-1软件包吗?
答案 0 :(得分:2)
既然你没有提到你在你的raspi上运行的那种操作系统但使用了apt-get
,我假设你正在运行某种版本的raspbian。您是否尝试搜索可用标头apt-cache search linux-headers
?此外,完整更新apt-get update && apt-get upgrade
可能很有用。
顺便说一下,我认为你可能在这里错了,因为有一个完全致力于reaspberry pi的堆栈社区。查看https://raspberrypi.stackexchange.com/,我相信他们可以为您提供更好的帮助。 看起来他们也已经讨论过这个问题。一些有用的链接:
https://raspberrypi.stackexchange.com/questions/37589/where-do-i-find-the-linux-headers-for-an-image
https://www.raspberrypi.org/forums/viewtopic.php?f=66&t=57401
希望我能帮到你。快乐的编码:3
答案 1 :(得分:2)
您可以通过以下方式获取Raspbian标头:
sudo apt-get install raspberrypi-kernel-headers
安装此软件包后,您可以在此处找到标题: / lib / modules //