apt – i have tried to install VirtualBox through Ubuntu 24-4-1 LST,but i got error

root@abdi-Compaq-15-Notebook-PC:/home/abdi# sudo apt install –reintall linux-headers-$(uname -r) virtualbox-dkms dkms
E: Command line option –reintall is not understood in combination with the other options
root@abdi-Compaq-15-Notebook-PC:/home/abdi# sudo apt install –reinstall linux-headers-$(uname -r) virtualbox-dkms dkms
Reading package lists… Done
Building dependency tree… Done
Reading state information… Done
The following packages were automatically installed and are no longer required:
libsdl-ttf2.0-0 libsdl1.2debian
Use ‘sudo apt autoremove’ to remove them.
0 upgraded, 0 newly installed, 3 reinstalled, 0 to remove and 3 not upgraded.
Need to get 4,032 kB/4,847 kB of archives.
After this operation, 0 B of additional disk space will be used.
Get:1 mirror.23m.com/ubuntu noble-updates/main amd64 linux-headers-6.8.0-49-generic amd64 6.8.0-49.49 [4,032 kB]
Fetched 4,032 kB in 4s (1,009 kB/s)
(Reading database … 158063 files and directories currently installed.)
Preparing to unpack …/dkms_3.0.11-1ubuntu13_all.deb …
Unpacking dkms (3.0.11-1ubuntu13) over (3.0.11-1ubuntu13) …
Preparing to unpack …/linux-headers-6.8.0-49-generic_6.8.0-49.49_amd64.deb …
Unpacking linux-headers-6.8.0-49-generic (6.8.0-49.49) over (6.8.0-49.49) …
Preparing to unpack …/virtualbox-dkms_7.0.16-dfsg-2ubuntu1.1_amd64.deb …
Module virtualbox-7.0.16 for kernel 6.8.0-49-generic (x86_64).
Before uninstall, this module version was ACTIVE on this kernel.

vboxdrv.ko.zst:

  • Uninstallation
    • Deleting from: /lib/modules/6.8.0-49-generic/updates/dkms/
  • Original module
    • No original module was found for this module on this kernel.
    • Use the dkms install command to reinstall any previous module version.

vboxnetadp.ko.zst:

  • Uninstallation
    • Deleting from: /lib/modules/6.8.0-49-generic/updates/dkms/
  • Original module
    • No original module was found for this module on this kernel.
    • Use the dkms install command to reinstall any previous module version.

vboxnetflt.ko.zst:

  • Uninstallation
    • Deleting from: /lib/modules/6.8.0-49-generic/updates/dkms/
  • Original module
    • No original module was found for this module on this kernel.
    • Use the dkms install command to reinstall any previous module version.
      depmod…………
      Deleting module virtualbox-7.0.16 completely from the DKMS tree.
      Unpacking virtualbox-dkms (7.0.16-dfsg-2ubuntu1.1) over (7.0.16-dfsg-2ubuntu1.1)
      …
      Setting up linux-headers-6.8.0-49-generic (6.8.0-49.49) …
      /etc/kernel/header_postinst.d/dkms:
  • dkms: running auto installation service for kernel 6.8.0-49-generic
  • dkms: autoinstall for kernel 6.8.0-49-generic
    …done.
    Setting up dkms (3.0.11-1ubuntu13) …
    Setting up virtualbox-dkms (7.0.16-dfsg-2ubuntu1.1) …
    Loading new virtualbox-7.0.16 DKMS files…
    Building for 6.8.0-49-generic
    Building initial module for 6.8.0-49-generic
    Done.

vboxdrv.ko.zst:
Running module version sanity check.

  • Original module
    • No original module exists within this kernel
  • Installation
    • Installing to /lib/modules/6.8.0-49-generic/updates/dkms/

vboxnetadp.ko.zst:
Running module version sanity check.

  • Original module
    • No original module exists within this kernel
  • Installation
    • Installing to /lib/modules/6.8.0-49-generic/updates/dkms/

vboxnetflt.ko.zst:
Running module version sanity check.

  • Original module
    • No original module exists within this kernel
  • Installation
    • Installing to /lib/modules/6.8.0-49-generic/updates/dkms/
      depmod…..
      Job for virtualbox.service failed because the control process exited with error
      code.
      See “systemctl status virtualbox.service” and “journalctl -xeu virtualbox.servic
      e” 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-11-25 16:15:07 CET; 36ms
      ago
      Docs: man:systemd-sysv-generator(8)
      Process: 12075 ExecStart=/etc/init.d/virtualbox start (code=exited, status=1
      /FAILURE)
      CPU: 211ms

Nov 25 16:15:07 abdi-Compaq-15-Notebook-PC systemd[1]: Starting virtualbox.servi
ce – LSB: VirtualBox Linux kernel module…
Nov 25 16:15:07 abdi-Compaq-15-Notebook-PC virtualbox[12075]: * Loading Virtual
Box kernel modules…
Nov 25 16:15:07 abdi-Compaq-15-Notebook-PC virtualbox[12075]: * modprobe vboxdr
v failed. Please use ‘dmesg’ to find out why
Nov 25 16:15:07 abdi-Compaq-15-Notebook-PC virtualbox[12075]: …fail!
Nov 25 16:15:07 abdi-Compaq-15-Notebook-PC systemd[1]: virtualbox.service: Contr
ol process exited, code=exited, status=1/FAILURE
Nov 25 16:15:07 abdi-Compaq-15-Notebook-PC systemd[1]: virtualbox.service: Faile
d with result ‘exit-code’.
Nov 25 16:15:07 abdi-Compaq-15-Notebook-PC systemd[1]: Failed to start virtualbo
x.service – LSB: VirtualBox Linux kernel module.
Processing triggers for man-db (2.12.0-4build2) …
root@abdi-Compaq-15-Notebook-PC:/home/abdi#

Read more here: Source link