9
October
2026
Installing the kernel driver for the TP-Link Wi-Fi adapter after updating the Debian OS
14:21

Installing the kernel driver for the TP-Link Wi-Fi adapter after updating the Debian OS

9 October 2026 14:21

This article covers assembling and installing the kernel driver during initial installation or after upgrading Linux to Debian OS if the Wi-Fi adapter does not work by default.

Introduction

At work on a prototype (test PC) I use OS Sparky Linux 7 based on Debian 13 "Trixie". This article is also suitable for classic Debian 13 and possibly for other similar OS (for example, Ubuntu, Linux Mint).

Problem

The Wi-Fi adapter driver was launched in 7.1.5. After updating the kernel from version 7.2.8, the Wi-Fi adapter stopped working. This is expressed in the fact that in the “Network Manager” applet, when you hover the mouse pointer, Wi-Fi networks are not visible and there is no connection to the Wi-Fi network by default.

This problem will occur after every kernel update of the Linux Kernel.

Solution

The solution to the problem is described in previous article.

These operations must be performed after each update of the Linux kernel.
The difference in instructions is in the kernel version numbers. In this case, the transition from the old version of the kernel 7.1.5 to the new kernel 7.2.8.

In other kernels, replace the "old" and "new" kernels in the instructions with your own.

1) Boot into old core. To do this, in the GNU GRUB boot menu, select the last item and then the previous version of the kernel with which the Wi-Fi adapter worked.
In this case, the item at the very end is called “Sparky GNU/Linux, with Linux 7.1.5-sparky-amd64 (recovery mode)”.

2) When logging in, enter your password.Delete using DKMS old driver:

sudo dkms remove rtw88/0.6

3) Reboot your PC into new core. In this case - by default (the topmost Grub2 menu item), which in this case is called "Sparky GNU/Linux, with Linux 7.2.8-sparky-amd64".

4) The remaining actions are in accordance with the instructions after the words "Connect the Ethernet cable". Namely:

When loaded new kernel run the commands:

rm -rf ~/rtw88

git clone https://github.com/lwfinger/rtw88

cd ~/rtw88

Before building the driver, you need to install the headers file for this kernel version:

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

Let's clean, compile and install the TP-Link Wi-Fi adapter driver.

sudo dkms remove rtw88/0.6 

sudo dkms install rtw88/0.6

sudo make install_fw

If you use secure boot (I don't have one, because I have a PC with BIOS):

sudo make sign

5) Reboot your PC (sudo reboot) and log in this way new kernel- select the topmost item in the GNU GRUB boot loader menu.

Now you can disconnect the Ethernet cable and use Wi-Fi wireless networks using the TP-Link adapter.



Related publications