You are not logged in.

#1 2024-03-17 17:01:26

hikmateustad
Member
Registered: 2022-01-23
Posts: 29

Removed dkms modules reappear in kernel upgrades [Solved]

My dkms status in linux-zen kernel version 6.7.9

hikmateustad@hikmateustad-dell ~ % sudo dkms status
acpi_call/1.2.2, 6.7.9-zen1-1-zen, x86_64: installed
nvidia/390.157, 6.7.9-zen1-1-zen, x86_64: installed
rtl88x2bu/5.13.1.r191.980d7cc, 6.7.9-zen1-1-zen, x86_64: installed
v4l2loopback/0.12.7, 6.7.9-zen1-1-zen, x86_64: installed

On upgrading to linux-zen 6.8.1 rtl88x2bu/5.13.1.r191.980d7cc and v4l2loopback/0.12.7, both error exited 10 while the other dkms modules passed.

rtl88x2bu/5.13.1.r191.980d7cc is the wireless modle for tp-link Archer T3UPlus AC 1300

Therefore I removed both the above errorenous modules from the dkms tree by issuing commands

hikmateustad@hikmateustad-dell ~ % sudo dkms remove v4l2loopback/0.12.7  
hikmateustad@hikmateustad-dell ~ % sudo dkms remove rtl88x2bu/5.13.1.r191.980d7cc

which gave feedback that those two modules were completely removed from the DKMS tree.

Mind you have not rebooted yet. Then I went to https://github.com/morrownr/88x2bu-20210702 and followed the instructions to install the wireless driver for tp-link Archer T3UPlus AC 1300 which went successfully. This adds the wireless driver rtl88x2bu back to the dkms tree

Next I

sudo downgrade linux-zen linux-zen-headers

back to version 6.7.9. No reboot yet.

So now if I

hikmateustad@hikmateustad-dell ~ % sudo dkms status
[sudo] password for hikmateustad: 
acpi_call/1.2.2, 6.7.9-zen1-1-zen, x86_64: installed
nvidia/390.157, 6.7.9-zen1-1-zen, x86_64: installed
rtl88x2bu/5.13.1, 6.7.9-zen1-1-zen, x86_64: installed

Going forward I proceed to install the latest arch linux kernel version 6.8.1 which installs correctly for dkms modules acpi_call, nvidia and rtl88x2bu but the removed rtl88x2bu/5.13.1.r191.980d7cc and v4l2loopback/0.12.7 reappear magically and fail again as you can see in the output.

hikmateustad@hikmateustad-dell ~ % sudo pacman -Syu --noconfirm && yay -Syu --noconfirm 
:: Synchronizing package databases...
 core is up to date
 extra                                           8.4 MiB  2.09 MiB/s 00:04 [------------------------------------------] 100%
 community is up to date
 multilib is up to date
 chaotic-aur                                     2.5 MiB   589 KiB/s 00:04 [------------------------------------------] 100%
:: Starting full system upgrade...
warning: grub: ignoring package upgrade (2:2.06.r591.g6425c12cd-1 => 2:2.12-1)
resolving dependencies...
looking for conflicting packages...

Packages (2) linux-zen-6.8.1.zen1-1  linux-zen-headers-6.8.1.zen1-1

Total Installed Size:  268.55 MiB
Net Upgrade Size:        2.12 MiB

:: Proceed with installation? [Y/n] 
(2/2) checking keys in keyring                                             [------------------------------------------] 100%
(2/2) checking package integrity                                           [------------------------------------------] 100%
(2/2) loading package files                                                [------------------------------------------] 100%
(2/2) checking for file conflicts                                          [------------------------------------------] 100%
:: Running pre-transaction hooks...
(1/2) Removing linux initcpios...
(2/2) Remove DKMS modules
==> dkms remove --no-depmod acpi_call/1.2.2 -k 6.7.9-zen1-1-zen
==> dkms remove --no-depmod nvidia/390.157 -k 6.7.9-zen1-1-zen
==> dkms remove --no-depmod rtl88x2bu/5.13.1 -k 6.7.9-zen1-1-zen
==> depmod 6.7.9-zen1-1-zen
:: Processing package changes...
(1/2) upgrading linux-zen                                                  [------------------------------------------] 100%
(2/2) upgrading linux-zen-headers                                          [------------------------------------------] 100%
:: Running post-transaction hooks...
(1/5) Arming ConditionNeedsUpdate...
(2/5) Updating module dependencies...
(3/5) Install DKMS modules
==> dkms install --no-depmod acpi_call/1.2.2 -k 6.8.1-zen1-1-zen
==> dkms install --no-depmod rtl88x2bu/5.13.1 -k 6.8.1-zen1-1-zen
==> dkms install --no-depmod v4l2loopback/0.12.7 -k 6.8.1-zen1-1-zen
Error! Bad return status for module build on kernel: 6.8.1-zen1-1-zen (x86_64)
Consult /var/lib/dkms/v4l2loopback/0.12.7/build/make.log for more information.
==> WARNING: `dkms install --no-depmod v4l2loopback/0.12.7 -k 6.8.1-zen1-1-zen' exited 10
==> dkms install --no-depmod rtl88x2bu/5.13.1.r191.980d7cc -k 6.8.1-zen1-1-zen
Error! Bad return status for module build on kernel: 6.8.1-zen1-1-zen (x86_64)
Consult /var/lib/dkms/rtl88x2bu/5.13.1.r191.980d7cc/build/make.log for more information.
==> WARNING: `dkms install --no-depmod rtl88x2bu/5.13.1.r191.980d7cc -k 6.8.1-zen1-1-zen' exited 10
==> dkms install --no-depmod nvidia/390.157 -k 6.8.1-zen1-1-zen
==> depmod 6.8.1-zen1-1-zen
(4/5) Updating linux initcpios...
==> Building image from preset: /etc/mkinitcpio.d/linux-zen.preset: 'default'
==> Using configuration file: '/etc/mkinitcpio.conf'
  -> -k /boot/vmlinuz-linux-zen -c /etc/mkinitcpio.conf -g /boot/initramfs-linux-zen.img
==> Starting build: '6.8.1-zen1-1-zen'
  -> Running build hook: [base]
  -> Running build hook: [udev]
  -> Running build hook: [autodetect]
  -> Running build hook: [modconf]
  -> Running build hook: [block]
  -> Running build hook: [keyboard]
  -> Running build hook: [keymap]
  -> Running build hook: [consolefont]
==> WARNING: consolefont: no font found in configuration
  -> Running build hook: [filesystems]
  -> Running build hook: [fsck]
==> Generating module dependencies
==> Creating zstd-compressed initcpio image: '/boot/initramfs-linux-zen.img'
==> Initcpio image generation successful
==> Building image from preset: /etc/mkinitcpio.d/linux-zen.preset: 'fallback'
==> Using configuration file: '/etc/mkinitcpio.conf'
  -> -k /boot/vmlinuz-linux-zen -c /etc/mkinitcpio.conf -g /boot/initramfs-linux-zen-fallback.img -S autodetect
==> Starting build: '6.8.1-zen1-1-zen'
  -> Running build hook: [base]
  -> Running build hook: [udev]
  -> Running build hook: [modconf]
  -> Running build hook: [block]
  -> Running build hook: [keyboard]
  -> Running build hook: [keymap]
  -> Running build hook: [consolefont]
==> WARNING: consolefont: no font found in configuration
  -> Running build hook: [filesystems]
  -> Running build hook: [fsck]
==> Generating module dependencies
==> Creating zstd-compressed initcpio image: '/boot/initramfs-linux-zen-fallback.img'
==> Initcpio image generation successful
(5/5) Refreshing PackageKit...
[sudo] password for hikmateustad: 
:: Synchronizing package databases...
 core is up to date
 extra is up to date
 community is up to date
 multilib is up to date
 chaotic-aur                                     2.5 MiB   541 KiB/s 00:05 [------------------------------------------] 100%
:: Searching AUR for updates...
 -> thorium-browser-bin: ignoring package upgrade (120.0.6099.235-2 => 122.0.6261.132-1)
:: Searching databases for updates...
 -> grub: ignoring package upgrade (2:2.06.r591.g6425c12cd-1 => 2:2.12-1)
 -> Packages not in AUR: archlinux-appstream-data-pamac  ipw2100-fw  ipw2200-fw  js78  kdsoap-ws-discovery-client-qt5  khotkeys  kquickcharts5  progsreiserfs  python-setuptools-scm-git-archive  stacer  thorium-browser-sse3-bin  wireplumber-docs
 -> Missing AUR Debug Packages: libkipi-debug
 -> Orphan (unmaintained) AUR Packages: intel-opencl-runtime  kjs  krunner5  python-pep517
 -> Flagged Out Of Date AUR Packages: intel-opencl-runtime  librewolf-bin
 there is nothing to do
hikmateustad@hikmateustad-dell ~ % 

Now I rebooted and fortunately my nvidia and wireless modules worked.

On the new kernel checking dkms status gave me

hikmateustad@hikmateustad-dell ~ % sudo dkms status
[sudo] password for hikmateustad: 
acpi_call/1.2.2, 6.8.1-zen1-1-zen, x86_64: installed
nvidia/390.157, 6.8.1-zen1-1-zen, x86_64: installed
rtl88x2bu/5.13.1, 6.8.1-zen1-1-zen, x86_64: installed
v4l2loopback/0.12.7: added
rtl88x2bu/5.13.1.r191.980d7cc: added

So I removed the modules rtl88x2bu/5.13.1.r191.980d7cc and v4l2loopback/0.12.7 by issuing the sudo dkms remove command but

I would like to completely remove the rtl88x2bu/5.13.1.r191.980d7cc and v4l2loopback/0.12.7 modules from the dkms tree such that it does not reappear in the next kernel upgrade.

How do I achieve it?

Thank you in advance for your help.

Last edited by hikmateustad (2024-03-18 16:00:38)

Offline

#2 2024-03-18 00:02:00

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,917

Re: Removed dkms modules reappear in kernel upgrades [Solved]

Did you install the packages for those? What happens if you remove those?

Offline

#3 2024-03-18 07:15:38

hikmateustad
Member
Registered: 2022-01-23
Posts: 29

Re: Removed dkms modules reappear in kernel upgrades [Solved]

V1del wrote:

Did you install the packages for those? What happens if you remove those?

As stated earlier, if I remove those manually using sudo dkms remove ... then those get removed from the dkms tree. This is confirmed by issuing the sudo dkms status command that those have been removed.

but

they reeappered during the 6.8.1 kernel upgrade as detailed in my post above. I do not want this.

So the question remains how can I delete those completely from the dkms tree so that they do not re-appear during a future kernel upgrade.

Offline

#4 2024-03-18 08:39:04

seth
Member
Registered: 2012-09-03
Posts: 52,365

Re: Removed dkms modules reappear in kernel upgrades [Solved]

V1del wrote:

Did you install the packages for those? What happens if you remove those?

pacman -Qs 'rtl88x2bu|v4l2loopback'

Offline

#5 2024-03-18 10:24:26

hans456
Member
Registered: 2022-07-15
Posts: 6

Re: Removed dkms modules reappear in kernel upgrades [Solved]

So the question remains how can I delete those completely from the dkms tree so that they do not re-appear during a future kernel upgrade.

you must also remove the sources under /usr/src/

Offline

#6 2024-03-18 11:20:34

hikmateustad
Member
Registered: 2022-01-23
Posts: 29

Re: Removed dkms modules reappear in kernel upgrades [Solved]

hans456 wrote:

So the question remains how can I delete those completely from the dkms tree so that they do not re-appear during a future kernel upgrade.

you must also remove the sources under /usr/src/

hikmateustad@hikmateustad-dell ~ % sudo dkms status
[sudo] password for hikmateustad: 
acpi_call/1.2.2, 6.8.1-zen1-1-zen, x86_64: installed
nvidia/390.157, 6.8.1-zen1-1-zen, x86_64: installed
rtl88x2bu/5.13.1, 6.8.1-zen1-1-zen, x86_64: installed
hikmateustad@hikmateustad-dell ~ % pacman -Qs 'rtl88x2bu|v4l2loopback'
local/rtl88x2bu-dkms-git 5.13.1.r191.980d7cc-1
      Kernel module for Realtek rtl88x2bu WiFi chipset
hikmateustad@hikmateustad-dell ~ % cd /usr/src/
completing directory
acpi_call-1.2.2/                googletest/                     rtl88x2bu-5.13.1/             
debug/                          linux-zen@                      rtl88x2bu-5.13.1.r191.980d7cc/
gmock/                          nvidia-390.157/                                               

So should I just yank (delete) the rtl88x2bu-5.13.1.r191.980d7cc folder under sources? Waiting for confirmation .....

Suprisingly v4l2loopback does not show up?

Offline

#7 2024-03-18 13:49:14

seth
Member
Registered: 2012-09-03
Posts: 52,365

Re: Removed dkms modules reappear in kernel upgrades [Solved]

dkms remove the modules first, then the package, then clear /usr/src from remnants.
Do you have th v4l2loopback sources in /usr/local/src? How did you install those?

Offline

#8 2024-03-18 15:59:16

hikmateustad
Member
Registered: 2022-01-23
Posts: 29

Re: Removed dkms modules reappear in kernel upgrades [Solved]

seth wrote:

dkms remove the modules first, then the package, then clear /usr/src from remnants.
Do you have th v4l2loopback sources in /usr/local/src? How did you install those?

hikmateustad@hikmateustad-dell ~ % sudo dkms status
[sudo] password for hikmateustad: 
acpi_call/1.2.2, 6.8.1-zen1-1-zen, x86_64: installed
nvidia/390.157, 6.8.1-zen1-1-zen, x86_64: installed
rtl88x2bu/5.13.1, 6.8.1-zen1-1-zen, x86_64: installed
hikmateustad@hikmateustad-dell ~ % sudo pacman -Runs rtl88x2bu-dkms-git
checking dependencies...

Packages (1) rtl88x2bu-dkms-git-5.13.1.r191.980d7cc-1

Total Removed Size:  27.26 MiB

:: Do you want to remove these packages? [Y/n] 
:: Running pre-transaction hooks...
(1/1) Remove DKMS modules
:: Processing package changes...
(1/1) removing rtl88x2bu-dkms-git                                          [------------------------------------------] 100%
:: Running post-transaction hooks...
(1/2) Arming ConditionNeedsUpdate...
(2/2) Refreshing PackageKit...
hikmateustad@hikmateustad-dell ~ % pacman -Qs 'rtl88x2bu|v4l2loopback'
1 hikmateustad@hikmateustad-dell ~ % cd /usr/src/                                                                        :(
completing directory
acpi_call-1.2.2/   gmock/             linux-zen@         rtl88x2bu-5.13.1/                                    
debug/             googletest/        nvidia-390.157/      

1 hikmateustad@hikmateustad-dell ~ % cd /usr/local/src
hikmateustad@hikmateustad-dell /usr/local/src % ls
hikmateustad@hikmateustad-dell /usr/local/src % cd ..
hikmateustad@hikmateustad-dell /usr/local % ls
bin  etc  games  include  lib  man  sbin  share  src

Removing the local package deleted the rtl88x2bu directory in /usr/src.

There are no sources for v4l2loopback in /usr/local/src. v4l2loopback was installed with a fresh Arch install almost 3+ years earlier so I cannot remember how I installed it.

Regarding the v4l2loopback kernel error many cited installing v4l2loopback post installing the kernel. Unfortunately it did not work for me.

hikmateustad@hikmateustad-dell ~ % yay -S v4l2loopback-dkms
Sync Explicit (1): v4l2loopback-dkms-0.12.7-2
resolving dependencies...
looking for conflicting packages...

Packages (1) v4l2loopback-dkms-0.12.7-2

Total Installed Size:  0.08 MiB

:: Proceed with installation? [Y/n] 
(1/1) checking keys in keyring                                             [------------------------------------------] 100%
(1/1) checking package integrity                                           [------------------------------------------] 100%
(1/1) loading package files                                                [------------------------------------------] 100%
(1/1) checking for file conflicts                                          [------------------------------------------] 100%
:: Processing package changes...
(1/1) installing v4l2loopback-dkms                                         [------------------------------------------] 100%
:: Running post-transaction hooks...
(1/4) Arming ConditionNeedsUpdate...
(2/4) Install DKMS modules
==> dkms install --no-depmod v4l2loopback/0.12.7 -k 6.8.1-zen1-1-zen
Error! Bad return status for module build on kernel: 6.8.1-zen1-1-zen (x86_64)
Consult /var/lib/dkms/v4l2loopback/0.12.7/build/make.log for more information.
==> WARNING: `dkms install --no-depmod v4l2loopback/0.12.7 -k 6.8.1-zen1-1-zen' exited 10
(3/4) Updating linux initcpios...
==> Building image from preset: /etc/mkinitcpio.d/linux-zen.preset: 'default'
==> Using configuration file: '/etc/mkinitcpio.conf'
  -> -k /boot/vmlinuz-linux-zen -c /etc/mkinitcpio.conf -g /boot/initramfs-linux-zen.img
==> Starting build: '6.8.1-zen1-1-zen'
  -> Running build hook: [base]
  -> Running build hook: [udev]
  -> Running build hook: [autodetect]
  -> Running build hook: [modconf]
  -> Running build hook: [block]
  -> Running build hook: [keyboard]
  -> Running build hook: [keymap]
  -> Running build hook: [consolefont]
==> WARNING: consolefont: no font found in configuration
  -> Running build hook: [filesystems]
  -> Running build hook: [fsck]
==> Generating module dependencies
==> Creating zstd-compressed initcpio image: '/boot/initramfs-linux-zen.img'
==> Initcpio image generation successful
==> Building image from preset: /etc/mkinitcpio.d/linux-zen.preset: 'fallback'
==> Using configuration file: '/etc/mkinitcpio.conf'
  -> -k /boot/vmlinuz-linux-zen -c /etc/mkinitcpio.conf -g /boot/initramfs-linux-zen-fallback.img -S autodetect
==> Starting build: '6.8.1-zen1-1-zen'
  -> Running build hook: [base]
  -> Running build hook: [udev]
  -> Running build hook: [modconf]
  -> Running build hook: [block]
  -> Running build hook: [keyboard]
  -> Running build hook: [keymap]
  -> Running build hook: [consolefont]
==> WARNING: consolefont: no font found in configuration
  -> Running build hook: [filesystems]
  -> Running build hook: [fsck]
==> Generating module dependencies
==> Creating zstd-compressed initcpio image: '/boot/initramfs-linux-zen-fallback.img'
==> Initcpio image generation successful
(4/4) Refreshing PackageKit...
hikmateustad@hikmateustad-dell ~ % sudo dkms status                                    
acpi_call/1.2.2, 6.8.1-zen1-1-zen, x86_64: installed
nvidia/390.157, 6.8.1-zen1-1-zen, x86_64: installed
rtl88x2bu/5.13.1, 6.8.1-zen1-1-zen, x86_64: installed
v4l2loopback/0.12.7: added
hikmateustad@hikmateustad-dell ~ % sudo dkms remove v4l2loopback/0.12.7
Module v4l2loopback 0.12.7 is not installed for kernel 6.8.1-zen1-1-zen (x86_64). Skipping...
Module v4l2loopback 0.12.7 is not built for kernel 6.8.1-zen1-1-zen (x86_64). Skipping...
Deleting module v4l2loopback-0.12.7 completely from the DKMS tree.
hikmateustad@hikmateustad-dell ~ % pacman -Qs 'rtl88x2bu|v4l2loopback' 
local/v4l2loopback-dkms 0.12.7-2
    v4l2-loopback device – module sources
hikmateustad@hikmateustad-dell ~ % sudo pacman -Runs v4l2loopback-dkms 
checking dependencies...
:: obs-studio optionally requires v4l2loopback-dkms: virtual camera support

Packages (1) v4l2loopback-dkms-0.12.7-2

Total Removed Size:  0.08 MiB

:: Do you want to remove these packages? [Y/n] 
:: Running pre-transaction hooks...
(1/1) Remove DKMS modules
:: Processing package changes...
(1/1) removing v4l2loopback-dkms                                           [------------------------------------------] 100%
:: Running post-transaction hooks...
(1/2) Arming ConditionNeedsUpdate...
(2/2) Refreshing PackageKit...
hikmateustad@hikmateustad-dell ~ % pacman -Qs 'rtl88x2bu|v4l2loopback'
1 hikmateustad@hikmateustad-dell ~ % sudo dkms status
acpi_call/1.2.2, 6.8.1-zen1-1-zen, x86_64: installed
nvidia/390.157, 6.8.1-zen1-1-zen, x86_64: installed
rtl88x2bu/5.13.1, 6.8.1-zen1-1-zen, x86_64: installed
hikmateustad@hikmateustad-dell ~ % cd /usr/local/src/
No matches for: `directory' or `file'

I will mark this as solved till the next kernel upgrade.

Thank you so much for your time and help.

Last edited by hikmateustad (2024-03-18 15:59:58)

Offline

Board footer

Powered by FluxBB