我正在尝试在我的 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 软件包之一吗?
最佳答案
由于您没有提到您在 raspi 上运行的是哪种操作系统,而是使用了 apt-get
,我假设您正在运行某个版本的 raspbian。您是否尝试搜索可用 header 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
关于linux - 在树莓派上安装 linux-headers-4.4.10,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37288800/