相关疑难解决方法(0)

错误:未找到内核头文件。(但他们已经就位)

我正在尝试在 VirtualBox 4.04 中安装 Guest Additions。主机操作系统是 Ubuntu 桌面 11.04 64 位,来宾操作系统是 Ubuntu 服务器 11.10 64 位。

$ sudo ./VBoxLinuxAdditions.run
Run Code Online (Sandbox Code Playgroud)

一些输出后,这一行被打印出来:

The headers for the current running kernel were not found.
Run Code Online (Sandbox Code Playgroud)

但头安装在相应至少到dpkg

$ dpkg --get-selections | grep linux-headers
linux-headers-3.0.0-12            install
linux-headers-3.0.0-12-server     install
linux-headers-server              install
Run Code Online (Sandbox Code Playgroud)

正在运行的内核是:

$ uname -a
Linux foobar 3.0.0-12-server #20-Ubuntu SMP Fri Oct 7 16:36:30 UTC 2011 x86_64 x86_64 X86_64 GNU/Linux
Run Code Online (Sandbox Code Playgroud)

如何解决问题以便 Guest Additions 安装程序能够找到内核头文件?

更新:添加完整输出。

The headers for the current running kernel were not …
Run Code Online (Sandbox Code Playgroud)

virtualbox kernel

81
推荐指数
6
解决办法
22万
查看次数

标签 统计

kernel ×1

virtualbox ×1