Problem installing awus1900 antenna drivers on a raspberry pi5 with kali

What have you tried:
sudo apt update
sudo apt upgrade -y
sudo apt dist-upgrade -y
sudo reboot now
sudo apt update
sudo apt install realtek-rtl88xxau-dkms
sudo apt install dkms
git clone https://github.com/aircrack-ng/rtl8814au
cd rtl8814au/
make
sudo make install
lsusb
iwconfig

What is the error:
└─$ sudo apt install realtek-rtl88xxau-dkms
Installing:
realtek-rtl88xxau-dkms

Installing dependencies:
dkms realtek-rtl8814au-dkms

Suggested packages:
menu

Summary:
Upgrading: 0, Installing: 3, Removing: 0, Not Upgrading: 0
Download size: 0 B / 3,506 kB
Space needed: 30.2 MB / 226 GB available

Continue? [Y/n] y
Selecting previously unselected package dkms.
(Reading database … 398996 files and directories currently installed.)
Preparing to unpack …/archives/dkms_3.0.13-1_all.deb …
Unpacking dkms (3.0.13-1) …
Selecting previously unselected package realtek-rtl8814au-dkms.
Preparing to unpack …/realtek-rtl8814au-dkms_5.8.5.1~git20240527.d8208c8-0kali1_all.deb …
Unpacking realtek-rtl8814au-dkms (5.8.5.1~git20240527.d8208c8-0kali1) …
Selecting previously unselected package realtek-rtl88xxau-dkms.
Preparing to unpack …/realtek-rtl88xxau-dkms_5.6.4.2~git20240726.63cf0b4-0kali1_all.deb …
Unpacking realtek-rtl88xxau-dkms (5.6.4.2~git20240726.63cf0b4-0kali1) …
Setting up dkms (3.0.13-1) …
Setting up realtek-rtl8814au-dkms (5.8.5.1~git20240527.d8208c8-0kali1) …
Loading new realtek-rtl8814au-5.8.5.1~git20240527.d8208c8 DKMS files…
Building for 6.6.63-v8+
Building initial module for 6.6.63-v8+
Error! Bad return status for module build on kernel: 6.6.63-v8+ (aarch64)
Consult /var/lib/dkms/realtek-rtl8814au/5.8.5.1~git20240527.d8208c8/build/make.log for more information.
dpkg: error processing package realtek-rtl8814au-dkms (–configure):
installed realtek-rtl8814au-dkms package post-installation script subprocess returned error exit status 10
dpkg: dependency problems prevent configuration of realtek-rtl88xxau-dkms:
realtek-rtl88xxau-dkms depends on realtek-rtl8814au-dkms; however:
Package realtek-rtl8814au-dkms is not configured yet.

dpkg: error processing package realtek-rtl88xxau-dkms (–configure):
dependency problems - leaving unconfigured
Processing triggers for kali-menu (2024.4.0) …
Processing triggers for man-db (2.13.0-1) …
Errors were encountered while processing:
realtek-rtl8814au-dkms
realtek-rtl88xxau-dkms
Error: Sub-process /usr/bin/dpkg returned an error code (1)

What device is this on:
on a raspberry pi5 device running kali linux operating system with kernel version 6.6.63-v8+

thanks for your help.

dkms is designed to update your drivers when a kernel update happens, and as such, you need to first install linux headers for your present kernel before running the dkms commands, so it knows which kernel to first build against.

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

Thanks for replying, but I’m having this problem

└─$ sudo apt install linux-headers-$(uname -r)
Error: Unable to locate package linux-headers-6.6.63-v8
Error: Couldn’t find any package by glob ‘linux-headers-6.6.63-v8’

then look and see what kernel heders are available, and install that kernel to your system and build against that;

apt search linux-headers*

1 Like

thanks I solved the problem

Hi cripton,
today I ran into the same issue after I had to set up a new Pi5.
I also need to install the realtek-rtl88xxau-dkms package. In the past the way described here: Raspberry Pi 5 | Kali Linux Documentation
worked just fine.

Can you describe, how you solved the problem?