
Ubuntu日本語フォーラム

ログインしていません。
Virtualboxを3.2から4.0へアップデートしたらエラーが出て実行出来なくなりました。
Kernel driver not installed (rc=-1908)
The VirtualBox Linux kernel driver (vboxdrv) is either not loaded or there is a permission problem with /dev/vboxdrv. Please reinstall the kernel module by executing
'/etc/init.d/vboxdrv setup'
as root. Users of Ubuntu, Fedora or Mandriva should install the DKMS package first. This package keeps track of Linux kernel changes and recompiles the vboxdrv kernel module if necessary.
自分なりに色々調べて、ターミナルで#sudo etc/init.d/vboxdrv setupを実行するも・・
WARNING: All config files need .conf: /etc/modprobe.d/ndiswrapper, it will be ignored in a future release.
* Stopping VirtualBox kernel modules [ OK ]
* Uninstalling old VirtualBox DKMS kernel modules [ OK ]
* Trying to register the VirtualBox kernel modules using DKMS
Error! Your kernel headers for kernel 2.6.32-25-generic cannot be found at
/lib/modules/2.6.32-25-generic/build or /lib/modules/2.6.32-25-generic/source.
* Failed, trying without DKMS
* Recompiling VirtualBox kernel modules
* Look at /var/log/vbox-install.log to find out what went wrong
なにやらエラーがでて進まない様子で、/lib/modules/2.6.32-25-generic/buildと/lib/modules/2.6.32-25-generic/sourceを
探して見ましたが、/lib/modules/2.6.32-25-generic/のフォルダのなかにはそのようなフォルダはありませんでした。
これ以上どうしたらいいのか分かりません。ご教授よろしくお願いします。
オフライン
murasaki による投稿:
Error! Your kernel headers for kernel 2.6.32-25-generic cannot be found at
/lib/modules/2.6.32-25-generic/build or /lib/modules/2.6.32-25-generic/source.
ということなので、ヘッダファイルが見つかりませんというエラーです。
実は今、Windowsからで上記のパスにヘッダが置かれるのか(もしくはリンクが張られるのか)確認できていませんが、VBoxのビルド自体は特別なことをしなくてもできたと思いますので、恐らくヘッダが入っていないものと思われます。パッケージマネージャでlinux-headers関連のパッケージがインストールされているか確認してみて下さい。
オフライン
sudo apt-get install linux-headers-generic
してみてください。
オフライン
sudo apt-get install linux-headers-genericを実行したら最新のやつがインストールされているとでたので、パッケージマネージャで検索してみたら2.6.32-28のheadersがインストールされていて、実際に使っているカーネルが2.6.32-25なのでそっちのheadersはインストールされていなかったのでインストールして確認しようと#sudo etc/init.d/vboxdrv setupを入力したところ・・・command not found・・・あれ?
フォルダを確認してみたらvboxdrvファイルがなくなっている・・・。心当たりが有るとすれば、virtualboxを3.2にもどしたりoseをいれてみたりしたことかなと思うのですが、vboxdrvファイルをもどす方法はありますでしょうか?
オフライン
結果から言うと解決しました。
まえの投稿で2.6.32.28のheadersと書きましたが2.6.35.28の間違いでした。
あと、vboxdrvがなくなっていると思ったらvboxdrv.dpkg-bakという名前に変わっていました。
ubuntuのカーネル2.6.35.28をインストールして、再起動してから、#sudo etc/init.d/vboxdrv.dpkg-bak setupでうまくいきました。
RosSoMax様、hmatsue様ありがとうございました!
オフライン