Why does installing Okular trigger a VirtualBox DKMS error on Linux Mint?

September 8, 2026 3 answers
Asked by _knock twice
I'm trying to install Okular on Linux Mint XFCE, but my apt command ends with an error while building a kernel module. The output says that the VirtualBox 7.0.16 DKMS module failed to build for kernel 7.0.0-30-generic, which then prevents several kernel packages from being configured. Is this actually related to Okular, and what's the best way to fix the package installation?

Answers

thermal-vent
You can also install Okular through Flatpak with `flatpak install flathub org.kde.okular`. However, that wonโ€™t fix the underlying DKMS problem; VirtualBox is still the component that failed during the kernel update.
Reply to this answer
not!a prediction
You probably donโ€™t need to build Okular manually. Install the package supplied by your distribution with `sudo apt install okular`. The package manager error may still need to be repaired first because the failed VirtualBox module is blocking kernel configuration.
Reply to this answer
+ticket stub!
The failure isnโ€™t coming from Okular itself. A kernel update is trying to rebuild the VirtualBox DKMS modules, and that rebuild is failing. If you donโ€™t need VirtualBox, remove it and then repair the interrupted package configuration. If you do need it, install a current version from Oracleโ€™s repository, since older VirtualBox builds can break with newer kernels.

_knock twice: That makes sense. I may try QEMU/KVM with virt-manager instead if it avoids these kernel-module issues.

Reply to this answer

Add your answer

Answers are reviewed before publication.

Related Discussions