You are not logged in.

#1 2023-01-02 18:55:16

uint64
Member
Registered: 2023-01-02
Posts: 4

Error! Your kernel headers for kernel 6.1.1-arch1-1 cannot be found

Hello!
So I have a Dell Latitude that doesn't have a network adapter, so I have to use a TP-Link WN823N V2 adapter. However, without the driver, the adapter doesn't work - it detects WiFis, but can't connect to them. So, that is why I installed the driver from here:
https://github.com/clnhub/rtl8192eu-linux

And I ran the install_wifi.sh, what it does:

dname=rtl8192eu
dver=1.0
dusrdir=/usr/src/$dname-$dver
ddkmsdir=/var/lib/dkms/$dname
sudo rmmod 8192eu
sudo rmmod rtl8xxxu
sudo dkms uninstall -m $dname -v $dver
sudo dkms remove -m $dname -v $dver
sudo rm -r $dusrdir
sudo rm -r $ddkmsdir
sudo mkdir $dusrdir
sudo cp -ar . $dusrdir
sudo dkms add -m $dname -v $dver
sudo dkms install -m $dname -v $dver
sudo depmod -a
echo "blacklist rtl8xxxu" >> ./blacklist-rtl8xxxu.conf
sudo mv ./blacklist-rtl8xxxu.conf /etc/modprobe.d/
sudo modprobe 8192eu

Now, when I launch it, the output is:

rmod: ERROR: Module 8192eu is not currently loaded
rmod: ERROR: Module rtl8xxxu is not currently loaded
Module rtl8192eu 1.0 is not installed for kernel 6.1.1-arch1-1 (x86_64). Skipping...
Module rtl8192eu 1.0 is not installed for kernel 6.1.1-arch1-1 (x86_64). Skipping...
Module rtl8192eu 1.0 is not built for kernel 6.1.1-arch1-1 (x86_64). Skipping...
Deleting module rtl8192eu-1.0 completely from the DKMS tree.
rm: cannot remove '/var/lib/dkms/rtl8192eu': No such file or directory
Creating symlink /var/lib/dkms/rtl8192eu/1.0/source -> /usr/src/rtl8192eu-1.0
Sign command: /usr/lib/modules/6.1.1-arch1-1/build/scripts/sign-file
Binary /usr/lib/modules/6.1.1-arch1-1/build/scripts/sign-file not found, modules won't be signed
...

Now, here's the issue:

Error! Your kernel headers for kernel 6.1.1-arch1-1 cannot be found at /usr/lib/modules/6.1.1-arch1-1/build or /usr/lib/modules/6.1.1-arch1-1/source.
Please install the linux-headers-6.1.1-arch1-1 package or use the --kernelsourcedir option to tell DKMS where it's located.
modprobe: FATAL: Module 8192eu not found in directory /lib/modules/6.1.1-arch1-1

I tried looking for the linux-headers-6.1.1-arch1-1 package, but it redirects me to llinux-headers 6.1.2.arch1-1 package. How can I install the 6.1.1?
Or, how can I make it use 6.1.2? Thanks in advance smile

Offline

#2 2023-01-02 19:07:56

loqs
Member
Registered: 2014-03-06
Posts: 15,645

Re: Error! Your kernel headers for kernel 6.1.1-arch1-1 cannot be found

uint64 wrote:

Or, how can I make it use 6.1.2? Thanks in advance smile

Run a full system update so both linux and linux headers will be updated to 6.1.2 then reboot so the booted kernel matches.  Have you tried using one of the rtl8192eu packages from AUR rather than that script?

Offline

#3 2023-01-02 19:30:15

uint64
Member
Registered: 2023-01-02
Posts: 4

Re: Error! Your kernel headers for kernel 6.1.1-arch1-1 cannot be found

I tried, but I don't know how to install and use them sad

Offline

#4 2023-01-02 19:33:43

Head_on_a_Stick
Member
From: London
Registered: 2014-02-20
Posts: 6,873
Website

Re: Error! Your kernel headers for kernel 6.1.1-arch1-1 cannot be found

Offline

#5 2023-01-02 19:46:13

uint64
Member
Registered: 2023-01-02
Posts: 4

Re: Error! Your kernel headers for kernel 6.1.1-arch1-1 cannot be found

Do you have Discord? Maybe there you can help me installing that. I tried connecting to WiFi, but it still doesn't work sad

Offline

#6 2023-01-02 19:48:30

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,376
Website

Re: Error! Your kernel headers for kernel 6.1.1-arch1-1 cannot be found

How did you install Arch?


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#7 2023-01-02 19:49:11

uint64
Member
Registered: 2023-01-02
Posts: 4

Re: Error! Your kernel headers for kernel 6.1.1-arch1-1 cannot be found

jasonwryan wrote:

How did you install Arch?

I installed it by downloading the ISO, then booting the PC from the USB. Afterwards I ran the

sudo archinstall

command, why?

Offline

#8 2023-01-02 21:08:17

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,018
Website

Re: Error! Your kernel headers for kernel 6.1.1-arch1-1 cannot be found

Please post your /var/log/archinstall/install.log

Mod note: moving to Guided Installer subforum.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

Board footer

Powered by FluxBB