Error While Installing Virtualbox in Kali Linux

Discussions related to using VirtualBox on Linux hosts.
Post Reply
Game
Posts: 1
Joined: 27. Mar 2021, 18:21

Error While Installing Virtualbox in Kali Linux

Post by Game »

I've tried intsalling with this command

Code: Select all

sudo apt install virtualbox -y

Code: Select all

Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  dconf-cli gir1.2-ibus-1.0 ibus ibus-data ibus-gtk ibus-gtk3 im-config libegl1-mesa libfuse3-3 libibus-1.0-5
  libpython3.8 libreadline5 libxcb-xtest0 python3-ibus-1.0
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
  virtualbox-dkms virtualbox-qt
Suggested packages:
  vde2 virtualbox-guest-additions-iso
The following NEW packages will be installed:
  virtualbox virtualbox-dkms virtualbox-qt
0 upgraded, 3 newly installed, 0 to remove and 1159 not upgraded.
Need to get 0 B/43.5 MB of archives.
After this operation, 173 MB of additional disk space will be used.
Selecting previously unselected package virtualbox-dkms.
(Reading database ... 331315 files and directories currently installed.)
Preparing to unpack .../virtualbox-dkms_6.1.18-dfsg-2_amd64.deb ...
Unpacking virtualbox-dkms (6.1.18-dfsg-2) ...
Selecting previously unselected package virtualbox.
Preparing to unpack .../virtualbox_6.1.18-dfsg-2_amd64.deb ...
Unpacking virtualbox (6.1.18-dfsg-2) ...
Selecting previously unselected package virtualbox-qt.
Preparing to unpack .../virtualbox-qt_6.1.18-dfsg-2_amd64.deb ...
Unpacking virtualbox-qt (6.1.18-dfsg-2) ...
Setting up virtualbox-dkms (6.1.18-dfsg-2) ...
Loading new virtualbox-6.1.18 DKMS files...
Building for 5.9.0-kali1-amd64
Module build for kernel 5.9.0-kali1-amd64 was skipped since the
kernel headers for this kernel does not seem to be installed.
Setting up virtualbox (6.1.18-dfsg-2) ...
vboxweb.service is a disabled or a static unit, not starting it.
Job for virtualbox.service failed because the control process exited with error code.
See "systemctl status virtualbox.service" and "journalctl -xe" for details.
invoke-rc.d: initscript virtualbox, action "restart" failed.
● virtualbox.service - LSB: VirtualBox Linux kernel module
     Loaded: loaded (/etc/init.d/virtualbox; generated)
     Active: failed (Result: exit-code) since Sat 2021-03-27 21:43:57 IST; 20ms ago
       Docs: man:systemd-sysv-generator(8)
    Process: 24341 ExecStart=/etc/init.d/virtualbox start (code=exited, status=1/FAILURE)
        CPU: 171ms

Mar 27 21:43:56 kali systemd[1]: Starting LSB: VirtualBox Linux kernel module...
Mar 27 21:43:57 kali virtualbox[24341]: Loading VirtualBox kernel modules...No suitable module for runnind ...
Mar 27 21:43:57 kali virtualbox[24352]:  failed!
Mar 27 21:43:57 kali virtualbox[24353]:  failed!
Mar 27 21:43:57 kali systemd[1]: virtualbox.service: Control process exited, code=exited, status=1/FAILU
Mar 27 21:43:57 kali systemd[1]: virtualbox.service: Failed with result 'exit-code'.
Mar 27 21:43:57 kali systemd[1]: Failed to start LSB: VirtualBox Linux kernel module.
Setting up virtualbox-qt (6.1.18-dfsg-2) ...
Processing triggers for kali-menu (2020.4.0) ...
Processing triggers for desktop-file-utils (0.26-1) ...
Processing triggers for mime-support (3.64) ...
Processing triggers for hicolor-icon-theme (0.17-2) ...
Processing triggers for man-db (2.9.3-2) ...
Processing triggers for shared-mime-info (2.0-1) ..
It Shows

Code: Select all

No suitable module for runnind 
When i tried to open it show this in terminal

Code: Select all

WARNING: The character device /dev/vboxdrv does not exist.
         Please install the virtualbox-dkms package and the appropriate
         headers, most likely linux-headers-amd64.

         You will not be able to start VMs until this problem is fixed.


Details Of System

Code: Select all

uname -r
5.9.0-kali1-amd64
Post Reply