在 BackTrack 5 上安装 VirtualBox

在 BackTrack 5 上安装 VirtualBox

运行 VirtualBox 的安装脚本时出现此错误:

$ sudo ~/Downloads/VirtualBox-4.1.14-77440-Linux_x86.run 
Verifying archive integrity... All good.
Uncompressing VirtualBox for Linux installation...........
VirtualBox Version 4.1.14 r77440 (2012-04-12T16:20:44Z) installer
Removing previous installation of VirtualBox 4.1.14 r77440 from /opt/VirtualBox
Installing VirtualBox to /opt/VirtualBox
tar: Record size = 8 blocks
Python found: python, installing bindings...
Building the VirtualBox kernel modules

Error! Bad return status for module build on kernel: 3.2.6 (i686)
Consult the make.log in the build directory
/var/lib/dkms/vboxhost/4.1.14/build/ for more information.
ERROR: binary package for vboxhost: 4.1.14 not found

以下是日志:

$ cat /var/lib/dkms/vboxhost/4.1.14/build/make.log 
DKMS make.log for vboxhost-4.1.14 for kernel 3.2.6 (i686)
Sun May 13 14:32:52 CEST 2012
make: Entering directory `/usr/src/linux-headers-3.2.6'
/usr/src/linux-headers-3.2.6/arch/x86/Makefile:39: /usr/src/linux-headers-3.2.6/arch/x86/Makefile_32.cpu: No such file or directory
make: *** No rule to make target `/usr/src/linux-headers-3.2.6/arch/x86/Makefile_32.cpu'.  Stop.
make: Leaving directory `/usr/src/linux-headers-3.2.6'

/usr/src/linux-headers-3.2.6/arch/x86/目录:

$ ls /usr/src/linux-headers-3.2.6/arch/x86/               
Kconfig        Makefile  ia32    lguest    mm        pci       tools  video
Kconfig.cpu    boot      kernel  lib       net       platform  um     xen
Kconfig.debug  crypto    kvm     math-emu  oprofile  power     vdso

关于“cpu”的 Makefile 引用

$ cat /usr/src/linux-headers-3.2.6/arch/x86/Makefile | grep cpu
        include $(srctree)/arch/x86/Makefile_32.cpu
        # FIXME - should be integrated in Makefile.cpu (Makefile_32.cpu)

在升级到 3.XI 之前没有这个问题,脚本可以正确安装 VB。有什么想法可能导致这个问题吗?

提前致谢!

答案1

问题是 /usr/src/linux-headers-3.2.6/arch/x86/Makefile_32.cpu不存在。从复制头文件github到正确的目录,然后尝试再次安装虚拟盒。

相关内容