Questions tagged [dkms]

Dynamic Kernel Module Support (DKMS)

is a framework used to generate Linux kernel modules whose sources do not generally reside in the Linux kernel source tree. DKMS enables kernel device drivers to be automatically rebuilt when a new kernel is installed.

An essential feature of DKMS is that it automatically recompiles all DKMS modules if a new kernel version is installed. This allows drivers and devices outside of the mainline kernel to continue working after a Linux kernel upgrade.

Another benefit of DKMS is that it allows one to install a new driver on an existing system, running an arbitrary kernel version, without any need for manual compilation or precompiled packages provided by the vendor.

246 questions
165
votes
9 answers

Could not load 'vboxdrv' after upgrade to Ubuntu 16.04 (and I want to keep secure boot)

I upgrade from Ubuntu 15.10 to 16.04 and since then VirtualBox 5.0.18 isn't starting my VMs anymore. It complains that 'vboxdrv' isn't loaded. So I try to load it and get the following error: $ sudo modprobe vboxdrv modprobe: ERROR: could not insert…
jans
  • 1,935
104
votes
5 answers

Why do I get "Required key not available" when install 3rd party kernel modules or after a kernel upgrade?

This issue happens only on UEFI systems with enabled Secure Boot. When I try to install DKMS modules like VirtualBox, Nvidia, or Broadcom drivers, they do not install and I get Required key not available when I try to modprobe them. VirtualBox…
Pilot6
  • 92,041
57
votes
7 answers

Command to rebuild all DKMS modules for all installed kernels?

Occasionally, my system gets into a state where some kernels are missing a module or two, because DKMS somehow forgot to compile those modules for that kernel. Rather than spend time diagnosing the problem, it would be nice if there was a single…
55
votes
4 answers

`Error! Could not locate dkms.conf file`

During a recent apt-get dist-upgrade of 12.10 I received the following error: Setting up linux-headers-3.5.0-19-generic (3.5.0-19.30) ... Examining /etc/kernel/header_postinst.d. run-parts: executing /etc/kernel/header_postinst.d/dkms…
51
votes
1 answer

What does DKMS do? How do I use it?

I've seen a few mentions about DKMS recently but it's not clear what it's actually doing on my system. What does DKMS actually do and how do I use it?
29
votes
4 answers

How do I fix a vboxdrv setup failure in VirtualBox?

So, I tried creating an OS with VirtualBox, and I got this error: Kernel driver not installed (rc=-1908) The VirtualBox Linux kernel driver (vboxdrv) is either not loaded or there is a permission problem with /dev/vboxdrv. Please reinstall the…
23
votes
4 answers

Do I "need" DKMS?

My Ubuntu based distro came with some VirtualBox stuff preinstalled, so I uninstalled it and it autoremoved DKMS package. From what I saw, it looks like useful package, but do I need it? Stuff like VirtualBox and CDemu installs it on its own, and…
Justauser
  • 263
19
votes
7 answers

Virtualbox broken after a dist-upgrade -- cannot install virtuabox-dkms nor run modprobe vboxdrv

I am running Ubuntu 20.04 and recently did a dist-upgrade. uname -r: 5.8.0-34-generic I purged Virtualbox and associate files by: sudo apt-get purge "^virtualbox-.*" After trying to reinstall any software I get the following now: >>$ sudo apt…
jRo
  • 301
18
votes
2 answers

How do I uninstall dkms modules if there are two of them?

I have 2 dkms modules are in same version: $ dkms status rtl8812AU, 4.3.14, 4.4.0-45-generic, x86_64: installed rtl8812AU, 4.3.14, 4.4.0-47-generic, x86_64: installed When I tried dkms uninstall -m rtl8812AU -v 4.3.14 it uninstalled the second one.…
15
votes
6 answers

VirtualBox "Kernel driver not installed" error despite running /sbin/vboxconfig

When starting a VirtualBox VM, I get: Running sudo /sbin/vboxconfig does not fix the problem. How to fix that? VirtualBox 5.0.10 r104061
Nicolas Raoul
  • 11,921
12
votes
1 answer

Unable to find an initial ram disk that I know how to handle

After upgrading to the next linux image, aptitude has outputted the following lines: Setting up linux-image-3.16.0-38-generic (3.16.0-38.52~14.04.1) ... Running depmod. update-initramfs: deferring update (hook will be called later) Examining…
Bach
  • 751
11
votes
2 answers

Why does dkms status "WARNING! Diff between built and installed module" happen?

generic@motorbrot:~$ sudo dkms status zfs, 0.8.4, 5.3.0-51-generic, x86_64: installed (WARNING! Diff between built and installed module!) (WARNING! Diff between built and installed module!) (WARNING! Diff between built and installed module!)…
lucidbrot
  • 1,461
  • 3
  • 21
  • 41
11
votes
1 answer

WARNING: amdgpu dkms failed for running kernel (on both 16.04 & 18.04)

Since last 4 days, I am trying to install amdgpu pro drivers on my ubuntu system and I am getting error. I have downloaded drivers from here for Rx580. I am following installation instructions from here. First-time installation, I am getting dkms…
Anand Suthar
  • 233
  • 2
  • 3
  • 8
10
votes
1 answer

What is the difference between modprobe and dkms?

Noob question here.... I read about modprobe and dkms and it seems to me they do the same thing, so what is the difference?
10
votes
2 answers

Has 3.19.0-65 introduced new Secure Boot requirements to 14.04 LTS?

My laptop came with 14.04 (Trusty Tahr) LTS. Since then, I have made no significant changes, and I have been applying updates whenever I was notified of them. On 2016-07-15, I was applying updates as normal, or so I thought. The "Software Updater"…
1
2 3
16 17