2016-05-18 401 views
2

我想在我的Raspberry Pi上安裝linux-headers包,但是沒有找到任何成功。在Raspberry Pi上安裝linux-headers-4.4.10

我曾嘗試:

$ 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頭包可用?我應該嘗試安裝其中一個linux-headers-4.4.0-1軟件包嗎?

回答

1

因爲你沒有提到你對你的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

0

你可以得到Raspbian報頭有:/lib/modules目錄//

sudo apt-get install raspberrypi-kernel-headers 

安裝這個包,你會發現,這裏頭後