r/linux4noobs • • 6d ago

Installing Virtualbox through software manager

I keep getting the error "error while installing package: installed vitualbox-dkms package post-installation script subprocess returned error exit status 10"

I've tried googling it but i haven't seen people runing into this.

Any help please?

EDIT: this is for linux mint

EDIT 2 : I wonder if this custom install of clip studio paint i tried once messed up with some base files or something... https://www.youtube.com/watch?v=iYhEm32Lr4Y
It didn't even work!

2 Upvotes

41 comments sorted by

3

u/Leather-Security8097 6d ago edited 6d ago

Don't install VirtualBox from the Ubuntu repos. The DKMS module isn't tested against newer kernels. Install the VirtualBox package from the official website, or add their repo (use "noble" as the codename).

An existing bug report discussing this issue can be found here.

1

u/nirwanda001 5d ago

Thank you so much. I tried installing from their official website and, like I said in another post it gives me an error of missing either libjpeg62-turbo or libssl1.1 depending on the version, even after installing those libraries.

I tried to ad the repo but i have no idea what i'm doing sorry.

2

u/DannoXYZ 6d ago edited 5d ago

Download VB directly from https://www.virtualbox.org/wiki/Linux_Downloads
Get Extensions Pack that matches version of VB.
https://www.virtualbox.org/wiki/Downloads
Also download User Guide as well.

Install background pre-requisites:
sudo apt update
sudo apt install -y dkms build-essential linux-headers-$(uname -r)

Then install .deb file you downloaded.

Finally add your user to vb group
sudo usermod -aG vboxusers $USER
Log off and back on.

1

u/nirwanda001 5d ago

Thank you so much for the step by step explanation, but i must be doing something wrong...
I tried all the debian versions available on that list and it says i'm missing libjpeg62-turbo or libssl1.1

I googled on how to install those but even after intalling them they still show the same error.

2

u/grantrules 5d ago

Can you share the exact error? Maybe it needs the -dev versions (libjpeg62-dev instead of libjpeg62) if those libraries are needed to build something.

1

u/nirwanda001 5d ago

So I apparently was installing the wrong version. Someone told me I should purge previous installs and run the ubuntu version. So I did, ad I got this error: "Error: Dependency is not satifiable: libc6 (>=2.42)"

1

u/grantrules 5d ago

Maybe install an older version? If you're following these instructions: https://www.virtualbox.org/wiki/Linux_Downloads#Debian-basedLinuxdistributions try `apt install virtualbox-7.1` or `virtualbox-7.0`

1

u/nirwanda001 5d ago

Uh 7.0 gives out the error:
Reading package lists... Done

Building dependency tree... Done

Reading state information... Done

Package virtualbox-7.0 is not available, but is referred to by another package.

This may mean that the package is missing, has been obsoleted, or

is only available from another source

E: Package 'virtualbox-7.0' has no installation candidate

While 7.1:
Reading package lists... Done

Building dependency tree... Done

Reading state information... Done

E: Unable to locate package virtualbox-7.1

E: Couldn't find any package by glob 'virtualbox-7.1'

E: Couldn't find any package by regex 'virtualbox-7.1'

2

u/grantrules 5d ago

What repo are you using? You followed: https://www.virtualbox.org/wiki/Linux_Downloads#Debian-basedLinuxdistributions and used noble for mydist?

1

u/nirwanda001 5d ago

Yeah i got those errors after it. But now i noticed, the noble repo said "Try: sudo apt install <deb name>"

So i did. I wrote sudo apt install virtualbox an di got some more errors lol

----------------------------
Error! Bad return status for module build on kernel: 7.0.0-43-generic (x86_64)

Consult /var/lib/dkms/virtualbox/7.0.16/build/make.log for more information.

dpkg: error processing package virtualbox-dkms (--configure):

installed virtualbox-dkms package post-installation script subprocess returned

error exit status 10

Setting up libgsoap-2.8.132t64:amd64 (2.8.132-2.1build2)…

dpkg: dependency problems prevent configuration of virtualbox:

virtualbox depends on virtualbox-dkms (>= 7.0.16-dfsg-2ubuntu1.3) | virtualbox-

source (>= 7.0.16-dfsg-2ubuntu1.3) | virtualbox-modules; however:

Package virtualbox-dkms is not configured yet.

Package virtualbox-source is not installed.

Package virtualbox-modules is not installed.

Package virtualbox-dkms which provides virtualbox-modules is not configured ye

t.

dpkg: error processing package virtualbox (--configure):

dependency problems - leaving unconfigured

dpkg: dependency problems prevent configuration of virtualbox-qt:

virtualbox-qt depends on virtualbox (= 7.0.16-dfsg-2ubuntu1.3); however:

Package virtualbox is not configured yet.

dpkg: error processing package virtualbox-qt (--configure):

dependency problems - leaving unconfigured

Processing triggers for mailcap (3.70+nmu1ubuntu1.24.04.1)…

Processing triggers for desktop-file-utils (0.27-2build1)…

Processing triggers for hicolor-icon-theme (0.17-2)…

Processing triggers for gnome-menus (3.36.0-1.1ubuntu3)…

Processing triggers for mate-menus (1.26.1+mint1)…

Processing triggers for libc-bin (2.39-0ubuntu8.12)…

Processing triggers for man-db (2.12.0-4build2)…

Processing triggers for shared-mime-info (2.4-4)…

Errors were encountered while processing:

virtualbox-dkms

virtualbox

virtualbox-qt

E: Sub-process /usr/bin/dpkg returned an error code (1)

---------------------------

The log it points at says:

---------------------------

DKMS make.log for virtualbox-7.0.16 for kernel 7.0.0-43-generic (x86_64)

Sat Nov 21 01:16:58 AM -03 2026

make: Entering directory '/usr/src/linux-headers-7.0.0-43-generic'

make[1]: Entering directory '/var/lib/dkms/virtualbox/7.0.16/build'

warning: the compiler differs from the one used to build the kernel

The kernel was built by: x86_64-linux-gnu-gcc-13 (Ubuntu 13.3.0-6ubuntu2~24.04.1) 13.3.0

You are using: gcc-13 (Ubuntu 13.3.0-6ubuntu2~24.04.1) 13.3.0

warning: pahole version differs from the one used to build the kernel

The kernel was built with: 125

You are using: 0

CC [M] vboxdrv/linux/SUPDrv-linux.o

CC [M] vboxdrv/SUPDrv.o

CC [M] vboxdrv/SUPDrvGip.o

CC [M] vboxdrv/SUPDrvSem.o

CC [M] vboxdrv/SUPDrvTracer.o

CC [M] vboxdrv/SUPLibAll.o

CC [M] vboxdrv/common/string/strformatrt.o

CC [M] vboxdrv/combined-agnostic1.o

CC [M] vboxdrv/combined-agnostic2.o

CC [M] vboxdrv/combined-os-specific.o

LD [M] vboxdrv/vboxdrv.o

CC [M] vboxnetflt/linux/VBoxNetFlt-linux.o

CC [M] vboxnetflt/VBoxNetFlt.o

CC [M] vboxnetflt/SUPR0IdcClient.o

CC [M] vboxnetflt/SUPR0IdcClientComponent.o

CC [M] vboxnetflt/linux/SUPR0IdcClient-linux.o

LD [M] vboxnetflt/vboxnetflt.o

CC [M] vboxnetadp/linux/VBoxNetAdp-linux.o

CC [M] vboxnetadp/VBoxNetAdp.o

LD [M] vboxnetadp/vboxnetadp.o

MODPOST Module.symvers

ERROR: modpost: module vboxdrv uses symbol kvm_enable_virtualization from namespace module:kvm-amd,kvm-intel, but does not import it.

ERROR: modpost: module vboxdrv uses symbol kvm_disable_virtualization from namespace module:kvm-amd,kvm-intel, but does not import it.

ERROR: modpost: module vboxdrv uses symbol cr4_update_irqsoff from namespace module:kvm,kvm-amd,kvm-intel, but does not import it.

ERROR: modpost: module vboxdrv uses symbol cr4_read_shadow from namespace module:kvm,kvm-amd,kvm-intel, but does not import it.

make[3]: *** [/usr/src/linux-headers-7.0.0-43-generic/scripts/Makefile.modpost:147: Module.symvers] Error 1

make[2]: *** [/usr/src/linux-headers-7.0.0-43-generic/Makefile:2090: modpost] Error 2

make[1]: *** [/usr/src/linux-headers-7.0.0-43-generic/Makefile:248: __sub-make] Error 2

make[1]: Leaving directory '/var/lib/dkms/virtualbox/7.0.16/build'

make: *** [Makefile:248: __sub-make] Error 2

make: Leaving directory '/usr/src/linux-headers-7.0.0-43-generic'

-----------------------

So uhh should i throw my computer in the garbage?

2

u/grantrules 5d ago

Can you run apt update and share the output? You don't want to use apt install virtualbox.. that's not a package from the official virtualbox repo

1

u/nirwanda001 5d ago

Reply 2 : I wonder if this custom install of clip studio paint i tried once messed up with some base files or something... https://www.youtube.com/watch?v=iYhEm32Lr4Y
It didn't even work!

2

u/DannoXYZ 5d ago

Did you completely uninstall it afterwards?

1

u/nirwanda001 5d ago

No tbh i had no idea how to do it

2

u/DannoXYZ 5d ago edited 5d ago

Easiest 100% for sure way to restore is to make complete image-backup of hard-drive before making any changes. Then you can revert back to exact previous configuration.

Botched installs can interfere with every single attempt to install any other softwares from then on, permanent damage and nothing will work properly. Only way to clean up really messed up system is format & wipe hard-drive and re-install OS from scratch. Good job with using VB, you can tinker and break things in VM without harming your system. Snapshots lets you rollback to previous state much easier than running down to bank vault to fetch backups to restore all the time.

Avoid trying to "forge ahead" with piling more and more stuff in attempt to fix. Need to back out and undo damage and get back to clean working system before moving forward. At least undo whatever steps you did in reverse order. Keep a log of all, your actions on separate system or phone:

  1. apt install <software1>
  2. apt install <software2>
  3. apt install <software3> ; if it doesn't work, undo step before moving on
  4. apt uninstall <software3>
  5. apt install <software4>

If you find out that <software2> borked some part of system, best to roll things back in reverse order. Uninstall 4, 3, 2. Then roll forward by installing 3, 4.

https://tekneed.com/how-to-install-a-software-on-linux-systems

https://www.digitalocean.com/community/tutorials/package-management-basics-apt-yum-dnf-pkg

https://campus.kennesaw.edu/offices-services/uits/docs/standards-procedures/linux-server-best-practices.pdf

2

u/nirwanda001 3d ago

Thanks for the advierte!

1

u/DannoXYZ 3d ago

You're welcome! :wave:

1

u/grantrules 5d ago

Probably not

2

u/DannoXYZ 5d ago

No, you must download Ubuntu version of installer, not debian. Mint is based on Ubuntu.

Also make sure remove partial previous installs.
sudo apt remove --purge virtualbox*

Did the pre-requisites install OK?

1

u/nirwanda001 5d ago

Ok i just did the purge thing and tried to install the latest ubuntu version. This time I'm getting "Error: Dependency is not satifiable: libc6 (>=2.42)

2

u/DannoXYZ 5d ago
  1. What version of Linux Mint are you running?
  2. What version of VB did you download?

1

u/nirwanda001 5d ago
  1. Linux Mint 22.3 - Cinnamon 64-bit
  2. Ubuntu 26.04

2

u/CosmicFieldDrift_ 5d ago

Did you try Ubuntu 22.04 ?

Also would you post the output from:
lsmod | grep vbox

1

u/nirwanda001 5d ago

So i just tried running all the Ubuntu versions and Noble actually installed. No idea what do next, though as it isn't showing on teh start menu. Some command line?

lsmod:
---------------
Module Size Used by

vboxnetadp 28672 0

vboxnetflt 40960 0

vboxdrv 720896 2 vboxnetadp,vboxnetflt

isofs 61440 1

rfcomm 106496 4

snd_seq_dummy 12288 0

snd_hrtimer 12288 1

xt_CHECKSUM 12288 1

xt_MASQUERADE 16384 3

xt_conntrack 12288 1

ipt_REJECT 12288 2

nf_reject_ipv4 12288 1 ipt_REJECT

xt_tcpudp 16384 0

nft_compat 20480 7

nft_chain_nat 12288 2

nf_nat 61440 2 nft_chain_nat,xt_MASQUERADE

nf_conntrack 196608 3 xt_conntrack,nf_nat,xt_MASQUERADE

nf_defrag_ipv6 24576 1 nf_conntrack

nf_defrag_ipv4 12288 1 nf_conntrack

nf_tables 389120 156 nft_compat,nft_chain_nat

bridge 421888 0

stp 12288 1 bridge

llc 16384 2 bridge,stp

cmac 12288 3

algif_hash 20480 1

algif_skcipher 12288 1

af_alg 32768 6 algif_hash,algif_skcipher

qrtr 53248 2

bnep 32768 2

binfmt_misc 24576 1

nls_iso8859_1 12288 1

snd_hda_codec_alc662 20480 1

snd_hda_codec_realtek_lib 65536 1 snd_hda_codec_alc662

snd_hda_codec_generic 122880 2 snd_hda_codec_alc662,snd_hda_codec_realtek_lib

snd_hda_codec_nvhdmi 16384 1

snd_hda_codec_hdmi 65536 1 snd_hda_codec_nvhdmi

snd_hda_intel 61440 2

iwlmvm 843776 0

amd_atl 77824 1

intel_rapl_msr 20480 0

intel_rapl_common 57344 1 intel_rapl_msr

snd_hda_codec 204800 6 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec_alc662,snd_hda_codec_nvhdmi,snd_hda_codec_realtek_lib

snd_hda_core 151552 6 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec_alc662,snd_hda_codec,snd_hda_codec_realtek_lib

snd_intel_dspcfg 45056 1 snd_hda_intel

snd_intel_sdw_acpi 16384 1 snd_intel_dspcfg

edac_mce_amd 28672 0

snd_hwdep 24576 1 snd_hda_codec

mac80211 1908736 1 iwlmvm

snd_pcm 204800 4 snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec,snd_hda_core

kvm_amd 253952 0

snd_seq_midi 24576 0

snd_seq_midi_event 16384 1 snd_seq_midi

snd_rawmidi 57344 1 snd_seq_midi

libarc4 12288 1 mac80211

kvm 1511424 1 kvm_amd

snd_seq 126976 9 snd_seq_midi,snd_seq_midi_event,snd_seq_dummy

iwlwifi 647168 1 iwlmvm

btusb 77824 0

btmtk 40960 1 btusb

snd_seq_device 16384 3 snd_seq,snd_seq_midi,snd_rawmidi

snd_timer 53248 3 snd_seq,snd_hrtimer,snd_pcm

btrtl 32768 1 btusb

btbcm 24576 1 btusb

btintel 69632 1 btusb

irqbypass 16384 1 kvm

snd 143360 17 snd_hda_codec_generic,snd_seq,snd_seq_device,snd_hda_codec_hdmi,snd_hwdep,snd_hda_intel,snd_hda_codec,snd_timer,snd_hda_codec_realtek_lib,snd_pcm,snd_rawmidi

i2c_piix4 32768 0

rapl 20480 0

cfg80211 1536000 3 iwlmvm,iwlwifi,mac80211

wmi_bmof 12288 0

gigabyte_wmi 12288 0

bluetooth 1093632 34 btrtl,btmtk,btintel,btbcm,bnep,btusb,rfcomm

k10temp 16384 0

ccp 188416 1 kvm_amd

i2c_smbus 20480 1 i2c_piix4

soundcore 16384 1 snd

joydev 32768 0

nvidia_uvm 2056192 0

input_leds 12288 0

gpio_amdpt 16384 0

mac_hid 12288 0

sch_fq_codel 28672 2

msr 12288 0

parport_pc 53248 0

ppdev 24576 0

lp 32768 0

parport 73728 3 parport_pc,lp,ppdev

efi_pstore 12288 0

nfnetlink 20480 3 nft_compat,nf_tables

dmi_sysfs 24576 0

ip_tables 32768 0

x_tables 65536 7 xt_conntrack,nft_compat,xt_tcpudp,xt_CHECKSUM,ipt_REJECT,ip_tables,xt_MASQUERADE

autofs4 57344 2

btrfs 2277376 0

libblake2b 24576 1 btrfs

raid10 77824 0

raid456 200704 0

async_raid6_recov 20480 1 raid456

async_memcpy 16384 2 raid456,async_raid6_recov

async_pq 20480 2 raid456,async_raid6_recov

async_xor 16384 3 async_pq,raid456,async_raid6_recov

async_tx 16384 5 async_pq,async_memcpy,async_xor,raid456,async_raid6_recov

xor 24576 2 async_xor,btrfs

raid6_pq 131072 4 async_pq,btrfs,raid456,async_raid6_recov

raid1 61440 0

raid0 24576 0

linear 16384 0

dm_mirror 28672 0

dm_region_hash 24576 1 dm_mirror

dm_log 20480 2 dm_region_hash,dm_mirror

nvidia_drm 143360 14

nvidia_modeset 1794048 28 nvidia_drm

nvidia 15106048 383 nvidia_uvm,nvidia_modeset

hid_generic 12288 0

uas 32768 0

usbhid 77824 0

usb_storage 86016 2 uas

hid 282624 2 usbhid,hid_generic

video 77824 1 nvidia_modeset

r8169 151552 0

ghash_clmulni_intel 12288 0

drm_ttm_helper 20480 1 nvidia_drm

realtek 57344 1

ttm 135168 1 drm_ttm_helper

ahci 53248 4

phylink 90112 1 r8169

libahci 53248 1 ahci

wmi 36864 3 video,gigabyte_wmi,wmi_bmof

aesni_intel 98304 25809

---------------------------------

i tried grepbox but it didn't seem to do anything except make some of my keys print weird symbols.

2

u/CosmicFieldDrift_ 5d ago

You want to enter this exactly:

lsmod | grep vbox  

The vertical line after lsmod is the pipe symbol, check above your enter key.

1

u/nirwanda001 5d ago

Sorry, i got this

vboxnetadp 28672 0

vboxnetflt 40960 0

vboxdrv 720896 2 vboxnetadp,vboxnetflt

→ More replies

1

u/nirwanda001 5d ago

Writing virtualbox on the console command seems to open the software, not sure how to add it to the startmenu though

2

u/CosmicFieldDrift_ 5d ago

You don't see it when you just search virtual in the Start Menu?

1

u/nirwanda001 5d ago

Exactly. It isn't there.

EDIT: NVM, it's there now. Maybe i rushed too much to look for it.

→ More replies

2

u/DannoXYZ 5d ago

look under Applications -> System -> Virtualbox

2

u/DannoXYZ 5d ago

Mint is behind times, so it has older library than that build of VB is looking for. It's like putting rocket fuel into your Model-T. Yeah, as mentioned, download VB for Ubuntu 22.04.

1

u/nirwanda001 5d ago

Reply 2 : I wonder if this custom install of clip studio paint i tried once messed up with some base files or something... https://www.youtube.com/watch?v=iYhEm32Lr4Y
It didn't even work!

2

u/CosmicFieldDrift_ 5d ago

Can you enter this command line:

apt list --installed | grep virtual

0

u/[deleted] 5d ago

[deleted] — view deleted comment

1

u/nirwanda001 5d ago

I haven't used the terminal, I tried using the software manager, and then somone recommeded me to use the .deb files instead.

. deb files give this error: "Error: Dependency is not satifiable: libc6 (>=2.42)"
while software manager gives this one: "Error while installing package: installed virtualbox-dkms package post-installation script subprocess returned error exist status 10"

1

u/nirwanda001 5d ago

Reply 2 : I wonder if this custom install of clip studio paint i tried once messed up with some base files or something... https://www.youtube.com/watch?v=iYhEm32Lr4Y
It didn't even work!