Установка гостевых дополнений на гостевой Xubuntu

Iam не может установить гостевые дополнения на гостевой Xubuntu 17.10, размещенной на Xubuntu 16.04.

Я запустил хост, щелкнул по устройствам, вставил компакт-диск с дополнительным гостем, 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
задан 22 November 2017 в 16:38

1 ответ

Итак, проблема заключалась в том, что ядро ​​в гостевой системе было новее, чем в хосте. Я не знаю, как на самом деле решить эту проблему, но я просто установил Xubuntu 16.04 в виртуальную коробку, и тогда он работал хорошо.

1
ответ дан 22 November 2017 в 16:38

Другие вопросы по тегам:

Похожие вопросы: