Installieren Sie Guest Additions unter Kali Linux auf VirtualBox 5 unter Ubuntu

Installieren Sie Guest Additions unter Kali Linux auf VirtualBox 5 unter Ubuntu

Ich versuche, Virtualbox-Gasterweiterungen für Kali Linux auf Oracle VBox 5 zu installieren, wie auf dem Kali-Linux angegebenSeite.

Wenn ich laufe:

apt-get update

apt-get install -y virtualbox-guest-x11

virtualbox-guest-x11hat eine fehlende Abhängigkeit xorg-video-abi-19und ich kann keine Möglichkeit zur Installation finden.

root@kali:~# apt-get install -y virtualbox-guest-x11
Reading package lists... Done
Building dependency tree      
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 virtualbox-guest-x11 : Depends: xorg-video-abi-19
E: Unable to correct problems, you have held broken packages.

root@kali:~# apt-get install -y xorg-video-abi-19
Reading package lists... Done
Building dependency tree      
Reading state information... Done
Package xorg-video-abi-19 is a virtual package provided by:
  xserver-xorg-core 2:1.17.2-1 [Not candidate version]

E: Package 'xorg-video-abi-19' has no installation candidate

Alternativ installiere ich erfolgreich Folgendes, wenn ich das für ältere Distributionen beschriebene Verfahren ausprobiere:

apt-get update && apt-get install -y linux-headers-$(uname -r)

Nach dem Ausführen ./VBoxLinuxAdditions.runerhalte ich jedoch Folgendes:

root@kali:~# ./VBoxLinuxAdditions.run
Verifying archive integrity... All good.
Uncompressing VirtualBox 5.0.24 Guest Additions for Linux............
VirtualBox Guest Additions installer
Removing installed version 5.0.24 of VirtualBox Guest Additions...
Removing existing VirtualBox non-DKMS kernel modules ...done.
Copying additional installer modules ...
Installing additional modules ...
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.

Es wäre großartig, wenn jemand eine Lösung zur Installation von VB-Gasterweiterungen bereitstellen könnte.

BEARBEITEN:

Nach dem Ausführen von apt-getinstall build-essential dkms

Der 2. Fehler ändert sich zu:

root@kali:~# ./VBoxLinuxAdditions.run
Verifying archive integrity... All good.
Uncompressing VirtualBox 5.0.24 Guest Additions for Linux............
VirtualBox Guest Additions installer
Removing installed version 5.0.24 of VirtualBox Guest Additions...
Removing existing VirtualBox DKMS kernel modules ...done.
Removing existing VirtualBox non-DKMS kernel modules ...done.
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.

Antwort1

Es funktionierte, nachdem ich v5.1 von VBox installiert und eine Neuinstallation von Kali durchgeführt hatte. Das Upgrade von 5.0 mit 5.1 und installiertem Kali brachte die VM aus irgendeinem Grund durcheinander.

verwandte Informationen