Error! Bad return status for module build on kernel: 6.1.38-1-lts (x86_64)

Hello,

Every time I update my system, as part of the output I see the following:

(11/23) Install DKMS modules
==> dkms install --no-depmod rtl8192eu/1.0 -k 6.1.38-1-lts
Error! Bad return status for module build on kernel: 6.1.38-1-lts (x86_64)
Consult /var/lib/dkms/rtl8192eu/1.0/build/make.log for more information.
==> WARNING: `dkms install --no-depmod rtl8192eu/1.0 -k 6.1.38-1-lts' exited 10
==> dkms install --no-depmod 8192eu/273.e39c4e7 -k 6.4.3-arch1-1
Error! Bad return status for module build on kernel: 6.4.3-arch1-1 (x86_64)
Consult /var/lib/dkms/8192eu/273.e39c4e7/build/make.log for more information.
==> WARNING: `dkms install --no-depmod 8192eu/273.e39c4e7 -k 6.4.3-arch1-1' exited 10
==> dkms install --no-depmod vboxhost/7.0.8_OSE -k 6.1.38-1-lts
==> dkms install --no-depmod rtl8192eu/1.0 -k 6.4.3-arch1-1
Error! Bad return status for module build on kernel: 6.4.3-arch1-1 (x86_64)
Consult /var/lib/dkms/rtl8192eu/1.0/build/make.log for more information.
==> WARNING: `dkms install --no-depmod rtl8192eu/1.0 -k 6.4.3-arch1-1' exited 10
==> dkms install --no-depmod 8192eu/273.e39c4e7 -k 6.1.38-1-lts
Error! Bad return status for module build on kernel: 6.1.38-1-lts (x86_64)
Consult /var/lib/dkms/8192eu/273.e39c4e7/build/make.log for more information.
==> WARNING: `dkms install --no-depmod 8192eu/273.e39c4e7 -k 6.1.38-1-lts' exited 10
==> dkms install --no-depmod vboxhost/7.0.8_OSE -k 6.4.3-arch1-1
==> depmod 6.4.3-arch1-1
==> depmod 6.1.38-1-lts

The process slows down around that part…

I think this dkms error could be related to a rtl8192eu driver for the wifi chip that I installed in a not so straight-forward way (it took a bit of back and forth to make it work). Probably the module I had installed has become incompatible with the current kernel or something like that, hence the “bad return status” that I get.

Now on a new place this desktop machine is connected through a cable so I don’t really need wifi connection anymore.

The question is: What would be the best way to uninstall that problematic module so as to avoid that error? Any tips?

Since this seems related to the kernel I wanted to have some advice before doing anything silly.

Thanks in advance.
Cheers, Manuel

to remove the wifi modules from all kernels you should be able to run something like the following:

sudo dkms remove rtl8192eu/1.0 --all
sudo dkms remove 8192eu/273.e39c4e7 --all

Yes, the error message looks similar to those I get using outdated dkms modules.

First use the advice from @MrToddarama
If that does not help, please check with yay -Ss 8192eu if there is a package installed via yay
If yes, remove it with yay -R <package-name>

You should probably remove the associated 8192eu packages if you have any installed. The following yay command will list all 8192eu packages and tell you if they are installed:

yay -Ss 8192eu

Look for any packages that say (Installed) at the end of the header. You could use that infromation to run a few yay commands to remove just the installed packages, or use the command below that will remove all of the 8192eu related packages listed in the AUR. Any packages not installed will just give a short message saying error: target not found:

yay -R rtl8192eu rtl8192eu-git rtl8192eu-dkms 8192eu-dkms-git

First of all, thanks a lot for all the replies.

I did what @MrToddarama recommended (dkms remove ... and yay -R). However, I still get this issue every time I do eos-update --yay or just yay (system update).

The other day I got:

( 9/30) Install DKMS modules
==> dkms install --no-depmod rtl8192eu/1.0 -k 6.1.61-1-lts
Error! Bad return status for module build on kernel: 6.1.61-1-lts (x86_64)
Consult /var/lib/dkms/rtl8192eu/1.0/build/make.log for more information.
==> WARNING: `dkms install --no-depmod rtl8192eu/1.0 -k 6.1.61-1-lts' exited 10
==> dkms install --no-depmod rtl8192eu/1.0 -k 6.5.9-arch2-1
Error! Bad return status for module build on kernel: 6.5.9-arch2-1 (x86_64)
Consult /var/lib/dkms/rtl8192eu/1.0/build/make.log for more information.
==> WARNING: `dkms install --no-depmod rtl8192eu/1.0 -k 6.5.9-arch2-1' exited 10
==> dkms install --no-depmod 8192eu/273.e39c4e7 -k 6.5.9-arch2-1
Error! Bad return status for module build on kernel: 6.5.9-arch2-1 (x86_64)
Consult /var/lib/dkms/8192eu/273.e39c4e7/build/make.log for more information.
==> WARNING: `dkms install --no-depmod 8192eu/273.e39c4e7 -k 6.5.9-arch2-1' exited 10
==> dkms install --no-depmod vboxhost/7.0.12_OSE -k 6.5.9-arch2-1
==> dkms install --no-depmod 8192eu/273.e39c4e7 -k 6.1.61-1-lts
Error! Bad return status for module build on kernel: 6.1.61-1-lts (x86_64)
Consult /var/lib/dkms/8192eu/273.e39c4e7/build/make.log for more information.
==> WARNING: `dkms install --no-depmod 8192eu/273.e39c4e7 -k 6.1.61-1-lts' exited 10
==> dkms install --no-depmod vboxhost/7.0.12_OSE -k 6.1.61-1-lts
==> depmod 6.5.9-arch2-1
==> depmod 6.1.61-1-lts

Today I got:

( 9/30) Install DKMS modules
==> dkms install --no-depmod rtl8192eu/1.0 -k 6.1.61-1-lts
Error! Bad return status for module build on kernel: 6.1.61-1-lts (x86_64)
Consult /var/lib/dkms/rtl8192eu/1.0/build/make.log for more information.
==> WARNING: `dkms install --no-depmod rtl8192eu/1.0 -k 6.1.61-1-lts' exited 10
==> dkms install --no-depmod rtl8192eu/1.0 -k 6.5.9-arch2-1
Error! Bad return status for module build on kernel: 6.5.9-arch2-1 (x86_64)
Consult /var/lib/dkms/rtl8192eu/1.0/build/make.log for more information.
==> WARNING: `dkms install --no-depmod rtl8192eu/1.0 -k 6.5.9-arch2-1' exited 10
==> dkms install --no-depmod 8192eu/273.e39c4e7 -k 6.5.9-arch2-1
Error! Bad return status for module build on kernel: 6.5.9-arch2-1 (x86_64)
Consult /var/lib/dkms/8192eu/273.e39c4e7/build/make.log for more information.
==> WARNING: `dkms install --no-depmod 8192eu/273.e39c4e7 -k 6.5.9-arch2-1' exited 10
==> dkms install --no-depmod vboxhost/7.0.12_OSE -k 6.5.9-arch2-1
==> dkms install --no-depmod 8192eu/273.e39c4e7 -k 6.1.61-1-lts
Error! Bad return status for module build on kernel: 6.1.61-1-lts (x86_64)
Consult /var/lib/dkms/8192eu/273.e39c4e7/build/make.log for more information.
==> WARNING: `dkms install --no-depmod 8192eu/273.e39c4e7 -k 6.1.61-1-lts' exited 10
==> dkms install --no-depmod vboxhost/7.0.12_OSE -k 6.1.61-1-lts
==> depmod 6.5.9-arch2-1
==> depmod 6.1.61-1-lts

Do you have any further tips?

Thanks.
Cheers, Manuel

Look in /usr/src to see if there are still folders for 8192eu or rtl8192eu … something like /usr/src/rtl8192eu-1.0 or similar.

If you see folders for either or both of the modules delete those specific folders. I believe the DKMS module install will attempts to rebuild kernel modules if finds headers in those directories.

Can you share the content of this file?

1 Like

It seems there are two things there that I can delete:

ls /usr/src
8192eu-273.e39c4e7 linux linux-lts rtl8192eu-1.0 vboxhost-7.0.12_OSE

you can remove these two directories from /usr/src:

8192eu-273.e39c4e7
rtl8192eu-1.0

https://pastebin.com/raw/XSDhGx3R

Thanks.

msoutopico,
You can see full instructions for removing old kernel modules here: Stacktrace Conversation on Removing dkms Modules

Based on that article you would need to run the following commands:

sudo dkms remove rtl8192eu/1.0 --all
sudo rm -rf /usr/src/rtl8192eu-1.0/
sudo rm /etc/modprobe.d/rtl8192eu.conf

sudo dkms remove 8192eu/273.e39c4e7 --all
sudo rm -rf /usr/src/8192eu-273.e39c4e7/
sudo rm /etc/modprobe.d/8192eu.conf

You have already run the first two commands from each section above, but you probably still need to look in /etc/modprobe.d/ to see if there are rtl8192eu and 8192eu configuration files that still need to be removed.

Hope this helps.

Thanks, @MrToddarama

It seems the first two command for each module were enough.

sudo rm /etc/modprobe.d/rtl8192eu.conf
rm: cannot remove ‘/etc/modprobe.d/rtl8192eu.conf’: No such file or directory
sudo rm /etc/modprobe.d/8192eu.conf
rm: cannot remove ‘/etc/modprobe.d/8192eu.conf’: No such file or directory

Thanks a lot!
Cheers, Manuel