Apt
試圖安裝 linux 標頭檔但在原始碼中找不到
我有一個 ts7400v2 sbc,我正在嘗試安裝 linux-headers。我跑:
sudo apt-get install build-essential linux-headers-$(uname -r)
但得到以下錯誤:
sudo: unable to resolve host ts7400-4e7b7c Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package linux-headers-2.6.35.3-571-gcca29a0 E: Couldn't find any package by regex 'linux-headers-2.6.35.3-571-gcca29a0'
有沒有我遺漏的特定來源?
編輯:
輸出
uname -a
:Linux ts7400-4e7b7c 2.6.35.3-571-gcca29a0+ #2 PREEMPT Mon Mar 16 14:56:01 PDT 2015 armv5tejl GNU/Linux
輸出為
apt-cache search linux-headers
linux-headers-3.2.0-4-all - All header files for Linux 3.2 (meta-package) linux-headers-3.2.0-4-all-armel - All header files for Linux 3.2 (meta-package) linux-headers-3.2.0-4-common - Common header files for Linux 3.2.0-4 linux-headers-3.2.0-4-iop32x - Header files for Linux 3.2.0-4-iop32x linux-headers-3.2.0-4-ixp4xx - Header files for Linux 3.2.0-4-ixp4xx linux-headers-3.2.0-4-kirkwood - Header files for Linux 3.2.0-4-kirkwood linux-headers-3.2.0-4-mv78xx0 - Header files for Linux 3.2.0-4-mv78xx0 linux-headers-3.2.0-4-orion5x - Header files for Linux 3.2.0-4-orion5x linux-headers-3.2.0-4-versatile - Header files for Linux 3.2.0-4-versatile linux-headers-3.2.0-5-all - All header files for Linux 3.2 (meta-package) linux-headers-3.2.0-5-all-armel - All header files for Linux 3.2 (meta-package) linux-headers-3.2.0-5-common - Common header files for Linux 3.2.0-5 linux-headers-3.2.0-5-iop32x - Header files for Linux 3.2.0-5-iop32x linux-headers-3.2.0-5-ixp4xx - Header files for Linux 3.2.0-5-ixp4xx linux-headers-3.2.0-5-kirkwood - Header files for Linux 3.2.0-5-kirkwood linux-headers-3.2.0-5-mv78xx0 - Header files for Linux 3.2.0-5-mv78xx0 linux-headers-3.2.0-5-orion5x - Header files for Linux 3.2.0-5-orion5x linux-headers-3.2.0-5-versatile - Header files for Linux 3.2.0-5-versatile linux-headers-2.6-iop32x - Header files for Linux iop32x configuration (dummy package) linux-headers-2.6-ixp4xx - Header files for Linux ixp4xx configuration (dummy package) linux-headers-2.6-kirkwood - Header files for Linux kirkwood configuration (dummy package) linux-headers-2.6-orion5x - Header files for Linux orion5x configuration (dummy package) linux-headers-2.6-versatile - Header files for Linux versatile configuration (dummy package) linux-headers-iop32x - Header files for Linux iop32x configuration (meta-package) linux-headers-ixp4xx - Header files for Linux ixp4xx configuration (meta-package) linux-headers-kirkwood - Header files for Linux kirkwood configuration (meta-package) linux-headers-mv78xx0 - Header files for Linux mv78xx0 configuration (meta-package) linux-headers-orion5x - Header files for Linux orion5x configuration (meta-package) linux-headers-versatile - Header files for Linux versatile configuration (meta-package)
標準 Debian 核心不支持 TS4700 v2 SBC,它使用製造商提供的變體。這意味著您不能使用 Debian 提供的核心包,包括標頭檔包。
要為系統建構額外的模組,您應該交叉編譯,不建議在 SBC 上建構核心。有關詳細資訊,請參閱TS wiki;基本上你需要複製適當的儲存庫並使用它來建構:
git clone https://github.com/embeddedarm/linux-2.6.35.3-imx28.git