
我嘗試在 Debian 伺服器上安裝 virtualBox,但每次我嘗試啟動虛擬機器時,它都會告訴我進行 /etc/init.d/vboxdrv 設定。每當我嘗試使用此命令時,它都會告訴我:
Stopping VirtualBox kernel modules ...done.
Uninstalling old VirtualBox DKMS kernel modules ...done.
Trying to register the VirtualBox kernel modules using DKMSError! Your kernel headers for kernel 2.6.32-amd64 cannot be found.
Please install the linux-headers-2.6.32-amd64 package,
or use the --kernelsourcedir option to tell DKMS where it's located
...failed!
(Failed, trying without DKMS)
Recompiling VirtualBox kernel modules ...failed!
(Look at /var/log/vbox-install.log to find out what went wrong)
當我嘗試安裝軟體包時,它說找不到它。
apt-get install linux-headers-2.6.32-amd64
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package linux-headers-2.6.32-amd64
E: Couldn't find any package by regex 'linux-headers-2.6.32-amd64'
我可以在哪裡得到那個包裹?
答案1
一個不錯的工具是module-assistant
.運行apt-get install module-assistant
並使用它來安裝 linux-headers 和 build-essential 是:
m-a update
進而:
m-a prepare