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.
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
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
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.
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.
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