Friday, 31 October 2025

Configure TP-LINK AC1300 using Linux Operating System DEBIAN13_1

 #   apt-get install -y dkms git build-essential

#   git clone https://github.com/cilynx/rtl88x2bu.git
# cd rtl88x2bu

After changing the directory , key in all this
as shown below and press ENTER :

VER=$(sed -n 's/PACKAGE_VERSION="\(.*\)"/\1/p' dkms.conf)

After that run the following Linux commands shown below
one by one :

sudo rsync -rvhP ./ /usr/src/rtl88x2bu-${VER}
sudo dkms add -m rtl88x2bu -v ${VER}
sudo dkms build -m rtl88x2bu -v ${VER}
sudo dkms install -m rtl88x2bu -v ${VER}

#  modprobe 88x2bu
#  reboot
After that check if the adapter is detected or not
#  ip a
#  iwconfig

You should see a new wireless interface

(e.g., wlan0 or wlp2s0).

🧠 Troubleshooting Tips

  • If the adapter isn’t detected, try plugging it

into a different USB port.
  • Run dmesg | grep usb to check for USB recognition.

  • Use lsusb to confirm the device is listed.


MICROSOFT Copilot  Answer

You're doing everything right — and this is a common

roadblock when building kernel modules like

your Wi-Fi driver. That error means your

system is missing the kernel headers needed

to compile the driver for your current kernel version.

Let’s fix it step by step 👇


🛠️ Step-by-Step: Fix “Kernel Headers Not Found” Error

✅ 1. Identify Your Exact Kernel Version

Run this command:

uname -r

You’ll see something like:

6.12.43+deb13-amd64

✅ 2. Install Matching Kernel Headers

Now install the headers for your kernel:

sudo apt update
sudo apt install linux-headers-$(uname -r)

If you get a “package not found” error, it means

 

the headers for your kernel version aren’t

 

available in the default repositories.

 

In that case:


🧪 3. Fix with a Compatible Kernel (if headers are

missing)

Sometimes custom or bleeding-edge kernels don’t have

headers in the repo. You can:

  • Switch to a standard kernel:
    sudo apt install linux-image-amd64 
linux-headers-amd64
  • Then reboot:
    sudo reboot
    

After reboot, verify the new kernel:

uname -r

Then re-run your DKMS build:

cd ~/rtl88x2bu
VER=$(sed -n 's/PACKAGE_VERSION="\(.*\)"/\1/p' dkms.conf)
sudo rsync -rvhP ./ /usr/src/rtl88x2bu-${VER}
sudo dkms add -m rtl88x2bu -v ${VER}
sudo dkms build -m rtl88x2bu -v ${VER}
sudo dkms install -m rtl88x2bu -v ${VER}

Let me know what uname -r shows — I’ll help you

find the exact headers or guide you through

switching kernels safely.

You're almost there! github.com



Hi Copilot ....... after reboot ....... when i run 
the command 
" uname -r " .......... i got  the message  
" 6.12.43+deb13-amd64 " ........ 
is this okay or i am suppose to get 
something else ?  THANKS for the answer.

MICROSOFT Copilot Answer

Thanks for checking — and yes, that output confirms you're still running

the same custom kernel version:

6.12.43+deb13-amd64

This is okay if you can install the matching kernel headers. But based

on your earlier error, it looks like Debian’s package repositories

don’t have headers for this specific kernel version, which is

why DKMS failed to build your Wi-Fi driver.


🧠 What You Can Do Next

✅ Option 1: Switch to a Standard Kernel (Recommended)

Install Debian’s default kernel and headers:

sudo apt install linux-image-amd64 linux-headers-amd64

Then reboot:

sudo reboot

After reboot, check your kernel again:

uname -r

You should see something like:

6.1.0-xx-amd64

Now you’ll be able to install the headers with:

sudo apt install linux-headers-$(uname -r)

Then retry the DKMS build steps for your Wi-Fi adapter.


🚫 Option 2: Stay on Custom Kernel (Advanced)

If you must stay on 6.12.43+deb13-amd64, you’ll need

to manually locate or build the kernel headers — which is more complex

and not ideal for average users.


Let me know if you'd like help switching kernels or if you're okay trying

the manual header route — I’ll guide you either way!

No comments:

Post a Comment