web-dev-qa-db-ja.com

Xubuntuゲストへのゲスト追加のインストール

Iamは、Xubuntu 16.04でホストされているXubuntu 17.10ゲストにゲスト追加をインストールできません。

ホストを起動し、デバイスをクリックして、ゲスト追加cdを挿入し、isoをホストにダウンロードし、ゲストのCDとして挿入しました。次にSudo ./VBoxLinuxAdditions.runを実行すると、次のエラー出力が表示されます。

myuser@myuser-VirtualBox:/media/myuser/VBOXADDITIONS_5.0.40_115130$ Sudo ./VBoxLinuxAdditions.run 
[Sudo] password for myuser: 
Verifying archive integrity... All good.
Uncompressing VirtualBox 5.0.40 Guest Additions for Linux............
VirtualBox Guest Additions installer
You appear to have a version of the VBoxGuestAdditions software
on your system which was installed from a different source or using a
different type of installer.  If you installed it from a package from your
Linux distribution or if it is a default part of the system then we strongly
recommend that you cancel this installation and remove it properly before
installing this version.  If this is simply an older or a damaged
installation you may safely proceed.

Do you wish to continue anyway? [yes or no]
yes
Removing existing VirtualBox DKMS kernel modules ...done.
Removing existing VirtualBox non-DKMS kernel modules ...done.
update-initramfs: Generating /boot/initrd.img-4.13.0-16-generic
update-initramfs: Generating /boot/initrd.img-4.13.0-17-generic
grep: /opt/VBoxGuestAdditions-*/init/*: No such file or directory
Copying additional installer modules ...
Installing additional modules ...
Removing existing VirtualBox DKMS kernel modules ...done.
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.

それが、現在のカーネルのヘッ​​ダーをインストールしようとする理由です:

Ruby@ruby-VirtualBox:/media/myuser/VBOXADDITIONS_5.0.40_115130$ Sudo apt-get install linux-headers-$(uname -r)
Reading package lists... Done
Building dependency tree       
Reading state information... Done
linux-headers-4.13.0-17-generic is already the newest version (4.13.0-17.20).
linux-headers-4.13.0-17-generic set to manually installed.
0 upgraded, 0 newly installed, 0 to remove and 5 not upgraded.

しかし、彼らはすでに最新のものですので、ここで問題は何ですか?また、このYou appear to have a version of the VBoxGuestAdditions software on your systemの由来もわかりません。今までvirtualbox-guest-dkmsのみをインストールしました。それはおそらく問題ですか?

1
Jeno

そのため、実際の問題は、ゲストのカーネルがホストのカーネルよりも新しいということでした。これを実際に解決する方法はわかりませんが、仮想ボックスにXubuntu 16.04をインストールしただけで、うまくいきました。

1
Jeno