VirtualBox をインストールするための linux-headers-2.6.32-amd64 が見つかりません

VirtualBox をインストールするための linux-headers-2.6.32-amd64 が見つかりません

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

関連情報