Ubuntu 12.10 に VBox Guest Additions をインストールする方法

Ubuntu 12.10 に VBox Guest Additions をインストールする方法

Ubuntu に VBox Guest Additions をインストールできません。Linux ヘッダーに問題があるようです。追記: Windows8 ホストで Ubuntu 12.10 ゲストを使用しています。インストールしようとすると、次のエラーが表示されました:-

Verifying archive integrity... All good.
Uncompressing VirtualBox 4.2.10 Guest Additions for Linux..........
VirtualBox Guest Additions installer
Removing installed version 4.2.10 of VirtualBox Guest Additions...
Removing existing VirtualBox non-DKMS kernel modules ...done.
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.

Building the main Guest Additions module ...fail!
(Look at /var/log/vboxadd-install.log to find out what went wrong)
Doing non-kernel setup of the Guest Additions ...done.
Installing the Window System drivers
Installing X.Org Server 1.13 modules ...done.
Setting up the Window System to use the Guest Additions ...done.
You may need to restart the hal service and the Window System (or just restart
the guest system) to enable the Guest Additions.

Installing graphics libraries and desktop services components ...done.
Press Return to close this window...

答え1

VirtualBox Guest Additions を正常にインストールするには、linux-headers-genericソフトウェア センターにあるパッケージが必要です。入力しても表示されない場合は、左下隅の「技術項目を表示」をクリックすると、リストが表示されます。パッケージをインストールします。

あるいは、Ubuntuパッケージサイトにアクセスすることもできます。ここ(64ビットUbuntuの場合)。32ビットUbuntuをお持ちの場合は、このリンクにアクセスしてください。ここどのリンクをクリックするかに関係なく、「quantal」をクリックしてパッケージをダウンロードします。ダウンロードしたパッケージをダブルクリックしてインストールします。

どちらの方法でも (完了したら)、VirtualBox Guest Additions を問題なくインストールできるようになります。

お役に立てれば。

答え2

Debian ベースのディストリビューションを使用していて、Linux を使用しているほとんどの人と同じようにネックベアードである場合は、ターミナル ウィンドウを開いて次のように入力することもできます。

(sudo) apt-get install linux-headers-generic

Show Technical Items何らかの理由でソフトウェア センターに表示されなかったため (また、 Vikramjeet が言及したオプションが見つからなかったため)、この方法を実行しました。

答え3

VirtualBox 4.3.10 を搭載した Ubuntu 14.04 デスクトップでも同様の問題が発生しました。

実行すると、存在しないシンボリックリンクがls -al /sbin/mount*表示されます。少し調べてみると、VBoxGuestAdditionsは/sbin/mount.vboxsf/usr/lib/VBoxGuestAdditions/mount.vboxsf/opt/VBoxGuestAdditions-4.3.10/lib/VBoxGuestAdditions/

sudo ln -s /opt/VBoxGuestAdditions-4.3.10/lib/VBoxGuestAdditions /usr/lib/VBoxGuestAdditions

これで共有フォルダが修正されました

関連情報