症状
次のメッセージは、VirtualBoxGuestAdditionsの構築段階で表示されます。
Building the VirtualBox Guest Additions kernel modules The headers for the current running kernel were not found. If the following module compilation fails then this could be the reason.
解決策
まず、現在実行中のカーネルと一致するカーネルヘッダーがシステムに含まれているかどうかを確認します。例:
# dpkg --get-selections | grep linux-headers linux-headers-3.13.0-53 install linux-headers-3.13.0-53-generic install linux-headers-generic install # uname -r 3.13.0-53-generic
ヘッダーの欠落に関する上記のメッセージは少し誤解を招く可能性があるため、VirtualBoxGuestAdditionsのビルドに必要な他のすべてのコンポーネントが使用可能であることを確認してください。以下のコマンドを実行して、buildコマンドを実行する前に、VirtualBoxGuestAdditionsをビルドするためのすべてのコンパイル前提条件が満たされていることを確認します。
# apt-get install linux-headers-`uname -r` dkms build-essential