r/linux4noobs • • 11d 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

View all comments

Show parent comment

2

u/grantrules 11d 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 11d 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 11d 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 11d 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 11d 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 11d 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 11d 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 11d 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 11d ago

Did you completely uninstall it afterwards?

1

u/nirwanda001 11d ago

No tbh i had no idea how to do it

2

u/DannoXYZ 10d ago edited 10d 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 8d ago

Thanks for the advierte!

1

u/DannoXYZ 8d ago

You're welcome! :wave:

1

u/grantrules 11d ago

Probably not