Score:0

Issues installing 3rd part drivers

us flag

I wouldn't consider myself new to Linux, but I suppose there is still a lot I don't know. I have had several older systems (12.04 and 14.04) for years now running various projects, however I am having a hard time with a newly built desktop with Ubuntu 21.10 installed. I'm sure there will be recommendations for a fresh install but I would like to avoid this if possible considering there were quite a few modifications I needed to perform in order to get the system running as it does now. Now to the question...

I am having issues installing 3rd party modules. This includes VirtualBox, Nvidia video card drivers, and Infiniband NIC drivers.

The last changes I did to my system was to update to using kernel 5.13 rather than 5.11 because of issues related to CH341 drivers for programming ESP micro processors (Which fixed that driver issue). A little later I updated from 21.04 to 21.10

After the Ubuntu update, I installed Virtualbox 6.1 (deb from website) and Nvidia 470 drivers for my video card (through additional drivers interface). Upon reboot i noticed the video driver had reverted back to the nouveau driver. When I tried starting a VM through VirtualBox I received a "Kernel driver not installed (rc=-1908)" error. After looking in dmesg I found...

[   14.654818] vboxdrv: loading out-of-tree module taints kernel.
[   14.654918] vboxdrv: module verification failed: signature and/or required key missing - tainting kernel
[   14.655148] module: x86/modules: Skipping invalid relocation target, existing value is nonzero for type 1, loc 000000005ac6aed5, val ffffffffc0dab16f

and similar for other drivers.

-- System Setup --
CPU: AMD Ryzen 7 5800X
RAM: Corsair Vengeance Pro 32gb DDR4 3200 C16
Motherboard: Gigabyte X570 AORUS Elite
GPU: GIGABYTE GTX 750 Ti OC 2 GB
HDD: SAMSUNG 980 M.2 SSD 1TB
NIC #1: Motherboard 1gb Ethernet
NIC #2: Mellanox ConnectX 2 network adapter (MHQH19B-XTR) in 10gb ethernet mode
OS: Ubuntu 21.10 64bit
Kernel (using uname -r): 5.13.0-051300-generic

-- Steps Performed in attempt to fix --

  1. Verified match between current running kernel and modules using uname -r and modinfo commands. Both showed kernel listed above.

  2. Disable Secure Boot by enabling CSM in Bios. No change in dmesg. Instructions I followed described here...

https://forum.gigabyte.us/thread/6997/gigabyte-b450m-ds3h-disable-secure

  1. Disable secure boot by installing mokutil + using --disable-validation command, saw "Booting in insecure mode" after restart. No change in dmesg or loaded the module. Instructions I followed described here...

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

  1. When disabling secure boot didn't work I Attempted to sign modules using method also described in the link above. No change in dmesg or loaded the module.

-- Other relevant info --
When performing the following command there seems to be quite a few kernels on the system, could this be a potential issue?

dpkg --list | grep -i -E --color 'linux-image|linux-kernel' | grep '^ii'
ii  linux-image-5.11.0-37-generic               5.11.0-37.41                               amd64        Signed kernel image generic
ii  linux-image-5.13.0-28-generic               5.13.0-28.31                               amd64        Signed kernel image generic
ii  linux-image-5.13.0-30-generic               5.13.0-30.33                               amd64        Signed kernel image generic
ii  linux-image-generic                         5.13.0.30.40                               amd64        Generic Linux kernel image
ii  linux-image-unsigned-5.13.0-051300-generic  5.13.0-051300.202106272333                 amd64        Linux kernel image for version 5.13.0 on 64 bit x86 SMP

I did try booting into kernel 5.13.0.30.40 from grub menu and reinstalling / signing the vboxdrv module. This didn't change the output of dmesg or load the module.

Thanks in advanced for any assistance. Please let me know if there is any additional information needed.

Added to provide clarification...

What could be the cause for the modules not loading if I already confirmed its not in Secure Boot, tried module signatures, and verified kernel version match?

ChanganAuto avatar
us flag
ALWAYS install in UEFI mode -> **Disable CSM**. **Disable Secure Boot** (it has nothing to do with Legacy/CSM although enabling this mode automatically disables Secure Boot because it's an UEFI exclusive feature). Enabling CSM after the fact changes nothing because your installation is still UEFI mode.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.