You are not logged in.

#1 2019-06-13 19:46:20

vrav
Member
Registered: 2019-05-18
Posts: 7

DKMS module tries to reinstall even though I have removed it

So, I used to use a different DKMS module for my USB wifi adapter called 8812au. Now I use rtl8812au which works. I've tried removing the old one, it's not installed or anything, but every time there's a kernel update, it tries to install it again (which doesn't work, because it doesn't exist).

pacman -Syu log

:: Running pre-transaction hooks...
(1/1) Remove DKMS modules
==> dkms remove steamos-xpad/20171105 -k 5.1.8-arch1-1-ARCH
==> dkms remove input-wacom/0.42.0 -k 5.1.8-arch1-1-ARCH
==> dkms remove rtl8812au/5.2.20.2.r32.g6faa3ea -k 5.1.8-arch1-1-ARCH
:: Processing package changes...
((redacted))
:: Running post-transaction hooks...
(1/9) Updating linux module dependencies...
(2/9) Install DKMS modules
==> dkms install steamos-xpad/20171105 -k 5.1.9-arch1-1-ARCH
==> dkms install input-wacom/0.42.0 -k 5.1.9-arch1-1-ARCH
==> dkms install 8812au/4.2.2 -k 5.1.9-arch1-1-ARCH
Error! Bad return status for module build on kernel: 5.1.9-arch1-1-ARCH (x86_64)
Consult /var/lib/dkms/8812au/4.2.2/build/make.log for more information.
==> dkms install rtl8812au/5.2.20.2.r32.g6faa3ea -k 5.1.9-arch1-1-ARCH
(3/9) Updating linux initcpios...

cat /var/lib/dkms/8812au/4.2.2/build/make.log

DKMS make.log for 8812au-4.2.2 for kernel 5.1.9-arch1-1-ARCH (x86_64)
Thu 13 Jun 2019 12:30:14 PM PDT
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/5.1.8-arch1-1-ARCH/build M=/var/lib/dkms/8812au/4.2.2/build  modules
make[1]: *** /lib/modules/5.1.8-arch1-1-ARCH/build: No such file or directory.  Stop.
make: *** [Makefile:1052: modules] Error 2

dkms status
(after kernel upgrade)

8812au, 4.2.2: added
input-wacom, 0.33.0: added
input-wacom, 0.35.0: added
input-wacom, 0.42.0, 5.1.9-arch1-1-ARCH, x86_64: installed
rtl8812au, 5.2.20.2.r32.g6faa3ea, 5.1.9-arch1-1-ARCH, x86_64: installed
steamos-xpad, 20171105, 5.1.9-arch1-1-ARCH, x86_64: installed

sudo dkms uninstall -m 8812au -v 4.2.2

Error! The module 8812au 4.2.2 is not currently installed.
This module is not currently ACTIVE for kernel 5.1.8-arch1-1-ARCH (x86_64).

sudo dkms remove 8812au/4.2.2 --all
(I have run this before, it still tries to reinstall it anyway)

------------------------------
Deleting module version: 4.2.2
completely from the DKMS tree.
------------------------------
Done.

Maybe this time the dkms remove will stick. Not sure why this module keeps coming back.

Any ideas? Files to check/edit/remove?

Offline

#2 2019-06-14 07:02:34

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,342

Re: DKMS module tries to reinstall even though I have removed it

Well how did you install it originally? If you didn't use pacman you practically set yourself up for this, if you don't have the original makefile where you could place a proper uninstall look into using lostfiles to identify files not belonging to a package.

Also maybe see the last sentence here: https://wiki.archlinux.org/index.php/Dy … ve_modules

Last edited by V1del (2019-06-14 07:05:32)

Offline

#3 2019-06-14 07:07:58

ugjka
Member
From: Latvia
Registered: 2014-04-01
Posts: 1,957
Website

Re: DKMS module tries to reinstall even though I have removed it

Did you use this Github source? https://github.com/diederikdehaas/rtl8812AU

Offline

#4 2021-03-28 23:44:10

barkawa
Member
Registered: 2021-03-28
Posts: 1

Re: DKMS module tries to reinstall even though I have removed it

Just had the same problem. I noticed the driver source was still under /usr/src/ and deleted it.
Hope this helps.

Offline

#5 2021-03-29 00:18:21

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,729

Re: DKMS module tries to reinstall even though I have removed it

barkawa wrote:

Just had the same problem. I noticed the driver source was still under /usr/src/ and deleted it.
Hope this helps.

Nearly 2 years later, I really doubt it.

Offline

#6 2021-03-29 04:13:05

fukawi2
Ex-Administratorino
From: .vic.au
Registered: 2007-09-28
Posts: 6,237
Website

Re: DKMS module tries to reinstall even though I have removed it

Closing.

Offline

Board footer

Powered by FluxBB