I installed EndeavourOS around half a year ago. At the time, there was a problem with getting the wifi agapter to work, but I managed to do this using:
sudo mkinitcpio -p linuxХХ
where XX stands for kernel version
But today, after system update, it stopped working again. This is the first time this has happened. I’m totally out of any ideas as to how to approach the problem this time. Previous solution doesn’t work.
Doing system upgrade again gives:
AUR update check:
:: Searching AUR for updates…
→ 8192eu-dkms: local (265.5484fbd-1) is newer than AUR (114.6d2705d-1)
→ Missing AUR Packages: rtl8192eu-dkms-git
→ Orphaned AUR Packages: 8192eu-dkms
→ Flagged Out Of Date AUR Packages: 8192eu-dkms rtl8192eu
there is nothing to do
I wasn’t very attentive when doing the update, but I got the impression that when it was running post transaction hooks went much faster tan it used to. Maybe it could not upgrade the dkms module? However, there wasn’t any errors.
That is what it seems like. Maybe the DKMS module isn’t buildable against the current linux kernel headers? Do you even have linux-headers installed? if you are using a different kernel, like linux-lts, linux-zen, or linux-hardened install the header package for it.
for example, for linux-zen it would be linux-zen-headers.
Maybe try linux-lts since it gets updates less often it should work for longer.
pacman -Qi linux
Name : linux
Version : 5.19.4.arch1-1
Description : The Linux kernel and modules
Architecture : x86_64
URL : https://github.com/archlinux/linux/commits/v5.19.4-arch1
Licenses : GPL2
Groups : None
Provides : VIRTUALBOX-GUEST-MODULES WIREGUARD-MODULE KSMBD-MODULE
Depends On : coreutils kmod initramfs
Optional Deps : wireless-regdb: to set the correct wireless channels of your country [installed]
linux-firmware: firmware images needed for some devices [installed]
Required By : r8168
Optional For : base
Conflicts With : None
Replaces : virtualbox-guest-modules-arch wireguard-arch
Installed Size : 178,69 MiB
Packager : Jan Alexander Steffens (heftig) heftig@archlinux.org
Build Date : Th 25 Aug 2022 20:31:12
Install Date : Sa 27 Aug 2022 17:27:26
Install Reason : Explicitly installed
Install Script : No
Validated By : Signature
pacman -Qi linux-headers
Name : linux-headers
Version : 5.19.4.arch1-1
Description : Headers and scripts for building modules for the Linux kernel
Architecture : x86_64
URL : https://github.com/archlinux/linux/commits/v5.19.4-arch1
Licenses : GPL2
Groups : None
Provides : None
Depends On : pahole
Optional Deps : None
Required By : None
Optional For : dkms nvidia-installer-common nvidia-installer-dkms
Conflicts With : None
Replaces : None
Installed Size : 144,46 MiB
Packager : Jan Alexander Steffens (heftig) heftig@archlinux.org
Build Date : Th 25 Aug 2022 20:31:12
Install Date : Sa 27 Aug 2022 17:27:28
Install Reason : Explicitly installed
Install Script : No
Validated By : Signature
dkms status
8192eu/265.5484fbd: added
nvidia/515.65.01, 5.19.4-arch1-1, x86_64: installed
rtl8192eu/4.4.1: added
So linux-headers are installed? Frankly I don’t understand what to do.
Building module:
Cleaning build area…
‘make’ all KVER=5.19.4-arch1-1…(bad exit status: 2)
Error! Bad return status for module build on kernel: 5.19.4-arch1-1 (x86_64)
Consult /var/lib/dkms/rtl8192eu/4.4.1/build/make.log for more information.
Ok. Finally this command from the link provided by ivanhoe installed it:
yay -Sy --noconfirm 8192eu-dkms
I remember using this command when I first installed the system, however it did not get the wifi adapter working. Only the procedure stated in the first post did. This is strange that now it worked.