aptitude search linux-headers
提供了这个:
p linux-headers-3.16.0-4-all - All header files for Linux 3.16 (meta-pack
p linux-headers-3.16.0-4-all-amd6 - All header files for Linux 3.16 (meta-pack
i linux-headers-3.16.0-4-amd64 - Header files for Linux 3.16.0-4-amd64
i A linux-headers-3.16.0-4-common - Common header files for Linux 3.16.0-4
p linux-headers-amd64 - Header files for Linux amd64 configuration
但我需要获取 32 位内核头文件
如何使用 apt 做到这一点?
答案1
它需要修改 /etc/apt/sources.list 将 i386 添加到可下载架构中,如下所示:
deb [arch=amd64,i386] http://httpredir.debian.org/debian/ jessie main contrib
之后你需要做
apt-get update
dpkg --add-architecture i386
apt-get update
并安装 i386 架构的软件包:
apt-get install linux-headers-3.16.0-4-686-pae:i386