It’s too difficult for Dietpi to drive the “RTL8188FTV wifi USB network card”. The prompt ‘Error! Your kernel headers for kernel 6.1.21+cannot be found at/lib/module’ cannot complete the driver compilation and installation at all! How to solve it?
It’s too difficult to fill the troubleshooting template?
sudo apt-get update
sudo apt-get install build-essential git dkms linux-headers-$(uname -r)
git clone GitHub - kelebek333/rtl8188fu: RTL8188FU driver for Linux 4.15.x ~ 6.8.x
sudo dkms add ./rtl8188fu
sudo dkms build rtl8188fu/1.0
sudo dkms install rtl8188fu/1.0
Based on error, you need to install kernel headers. To help you we need to know what device (SBC) and system you are using. So we can tell you what exact package you need to install.
Required Information
- DietPi version |
cat /boot/dietpi/.version
- Distro version |
echo $G_DISTRO_NAME $G_RASPBIAN
- Kernel version |
uname --all
- Architecture |
dpkg --print-architecture
- SBC model |
echo $G_HW_MODEL_NAME
or (EG: RPi3)
According to the kernel version, it could be an RPI device, but we don’t know for sure. In the case of a 64bit RPi, OT could be thinking of a migration to the new RPi kernel structure that was introduced with the RPi5, but is also applicable to other RPi devices.
Raspberry Pi Model B Plus Rev 1.2
Install headers and try compilation again
sudo apt install linux-headers-rpi-v6
With the Linux 6.1 image, the kernel headers package is called raspberrypi-kernel-headers
. Generally, when aiming to install kernel headers, always check the name of the installed kernel package. The headers package is always named with the name pattern. The package you tried to install is for the Debian kernel, which is used for x86 systems only.
No, it still cannot solve the above problem. The error message is still the same as before and cannot be resolved.
You mean the “no kernel header found” message?
Which kernel are you actually using?
uname -a
dpkg -l | grep -E 'kernel|linux'
ls -l /lib/modules
kernel 6.1.21+
Again you are not answering on the questions you received. How should we help if we simply did not get what we ask for? @MichaIng was asking for 3 different information, we received just one.