Virtualbox fails on FossaDog

Moderator: fredx181

Post Reply
Luluc
Posts: 155
Joined: Mon Feb 26, 2024 3:13 am
Has thanked: 89 times
Been thanked: 7 times

Virtualbox fails on FossaDog

Post by Luluc »

I tried the regular installation through Synaptic, but it fails:

Code: Select all

Loading new virtualbox-6.1.50 DKMS files...
Building for 5.4.0-53-generic
Module build for kernel 5.4.0-53-generic was skipped since the
kernel headers for this kernel does not seem to be installed.
Setting up virtualbox (6.1.50-dfsg-1~ubuntu1.20.04.1) ...
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 Mon 2024-12-02 16:11:28 -03; 7ms ago
       Docs: man:systemd-sysv-generator(8)
    Process: 10840 ExecStart=/etc/init.d/virtualbox start (code=exited, status=1/FAILURE)

Dec 02 16:11:28 live systemd[1]: Starting LSB: VirtualBox Linux kernel module...
Dec 02 16:11:28 live virtualbox[10840]:  * Loading VirtualBox kernel modules...
Dec 02 16:11:28 live virtualbox[10840]:  * No suitable module for running kernel found
Dec 02 16:11:28 live virtualbox[10840]:    ...fail!
Dec 02 16:11:28 live systemd[1]: virtualbox.service: Control process exited, code=exited, status=1/FAILURE
Dec 02 16:11:28 live systemd[1]: virtualbox.service: Failed with result 'exit-code'.
Dec 02 16:11:28 live systemd[1]: Failed to start LSB: VirtualBox Linux kernel module.

My uneducated guess is that the installation fails because I have an "unorthodox" kernel.

Any suggestions?

User avatar
fredx181
Posts: 3205
Joined: Tue Dec 03, 2019 1:49 pm
Location: holland
Has thanked: 395 times
Been thanked: 1379 times
Contact:

Re: Virtualbox fails on FossaDog

Post by fredx181 »

@Luluc
Required to install for virtualbox is the linux-headers package matching with the kernel: apt install linux-headers-$(uname -r) (in your case will become 5.4.0-53)

My uneducated guess is that the installation fails because I have an "unorthodox" kernel.

The kernel itself is not unorthodox, it's Ubuntu kernel, the initrd is unorthodox yes.

Luluc
Posts: 155
Joined: Mon Feb 26, 2024 3:13 am
Has thanked: 89 times
Been thanked: 7 times

Re: Virtualbox fails on FossaDog

Post by Luluc »

fredx181 wrote: Tue Dec 03, 2024 8:51 am

Required to install for virtualbox is the linux-headers package matching with the kernel: apt install linux-headers-$(uname -r) (in your case will become 5.4.0-53)

That worked. Thank you.

Post Reply

Return to “UbuntuDogs”