无法安装 debian header 3.12-1-686-pae

无法安装 debian header 3.12-1-686-pae

我正在尝试使用需要 Linux 标头的 VirtualBox,但我找不到我的标头。

sudo apt-get -y install linux-headers-`uname -r`  
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package linux-headers-3.12-1-686-pae
E: Couldn't find any package by regex 'linux-headers-3.12-1-686-pae'
E: Couldn't find any package by regex 'linux-headers-3.12-1-686-pae'

我尝试添加好的 repo

deb http://http.debian.net/debian/ jessie main contrib

执行 apt-get update 后

# apt-get install linux-headers-$(uname -r|sed 's,[^-]*-[^-]*-,,') virtualbox

喜欢提及这里没有成功。

之后dpkg-reconfigure virtualbox-dkms

Loading new virtualbox-4.3.14 DKMS files...
Building only for 3.12-1-686-pae
Module build for the currently running kernel was skipped since the
kernel source for this kernel does not seem to be installed.
[ ok ] Stopping VirtualBox kernel modules.
[FAIL] Starting VirtualBox kernel modules[....] No suitable module for running kernel found ... failed!
 failed!
invoke-rc.d: initscript virtualbox, action "restart" failed.

答案1

“jessie” 也被称为“测试”。这意味着事情随时可能发生变化。

您安装的内核版本不再在存储库中可用;因此,linux-headers-* 等支持包也消失了。

我建议升级到当前的 linux-image 包(撰写本文时为 linux-image-3.14-2-686-pae),同时安装相应的 linux-header 包,然后(重新启动进入新内核后)您应该能够构建所需的 virtualbox 模块。

相关内容