I need help installing TP-Link Archer T2U PLUS [RTL8821AU] on RPI5 using Kali 6.6.63-v8+

Hi everybody, I am quite new Kali community. I’ve been using some other distros before, but I’m encountering some issues while trying to install TP-Link Archer T2U PLUS [RTL8821AU] on RPI500 running 6.6.63-v8+ kernel.

I’ve managed to follow some steps from the Web, but I seem to go in circles now and would appreciate any assistance provided.

When running ‘sudo apt update && sudo apt upgrade -y’ i get the following issue:

Hit:1 Index of / kali-rolling InRelease
117 packages can be upgraded. Run ‘apt list --upgradable’ to see them.
The following packages were automatically installed and are no longer required:
dnsutils libegl-dev libgtksourceviewmm-3.0-0v5 libtagc0
firebird3.0-common libflac12t64 libgumbo2 libunwind-19
firebird3.0-common-doc libfmt9 libjxl0.9 libwebrtc-audio-processing1
libbfio1 libgl1-mesa-dev libmbedcrypto7t64 libx265-209
libc++1-19 libgles-dev libmsgraph-0-1 libxcb-dri2-0
libc++abi1-19 libgles1 libpaper1 python3-appdirs
libcapstone4 libglvnd-core-dev libqt5sensors5 python3-ntlm-auth
libconfig++9v5 libglvnd-dev libqt5webkit5 ruby3.1
libconfig9 libgtksourceview-3.0-1 libtag1v5 ruby3.1-dev
libdirectfb-1.7-7t64 libgtksourceview-3.0-common libtag1v5-vanilla ruby3.1-doc
Use ‘sudo apt autoremove’ to remove them.

Not upgrading:
blueman python3-brlapi python3-mysqldb python3-tables
imagemagick python3-brotli python3-netifaces python3-tables-lib
kali-desktop-xfce python3-cairo python3-newt python3-talloc
kali-linux-headless python3-cbor python3-numexpr python3-tdb
libapache2-mod-php python3-cffi-backend python3-pandas-lib python3-tk
libldb2 python3-charset-normalizer python3-pcapy python3-ubjson
libnewt0.52 python3-contourpy python3-pil python3-ujson
libnss-winbind python3-cups python3-pil.imagetk python3-unicodedata2
libpam-winbind python3-dbus python3-protobuf python3-uvloop
libpython3-dev python3-dev python3-psycopg python3-venv
libpython3-stdlib python3-ephem python3-psycopg-c python3-websockets
libsmbclient0 python3-fonttools python3-psycopg2 python3-wrapt
libtalloc2 python3-frozenlist python3-pycares python3-wsaccel
libtdb1 python3-gdal python3-pycurl python3-yaml
libwbclient0 python3-gevent python3-pydantic-core python3-yara
libzbar0t64 python3-gi python3-pygame python3-yarl
onboard python3-gi-cairo python3-pygraphviz python3-zope.interface
onboard-common python3-gpg python3-pymssql python3-zstandard
onboard-data python3-greenlet python3-pyqt5.sip qterminal
passing-the-hash python3-gssapi python3-pyqt6.sip samba
php python3-jq python3-regex samba-ad-dc
php-common python3-kiwisolver python3-rpds-py samba-common
php-mysql python3-ldb python3-ruamel.yaml.clib samba-common-bin
python-tables-data python3-lxml python3-samba samba-dsdb-modules
python3 python3-lz4 python3-scipy samba-libs
python3-aardwolf python3-markupsafe python3-setproctitle smbclient
python3-aiohttp python3-matplotlib python3-simplejson winbind
python3-bcrypt python3-minimal python3-smbc
python3-bitstruct python3-msgpack python3-snappy
python3-bottleneck python3-multidict python3-sqlalchemy-ext

Summary:
Upgrading: 0, Installing: 0, Removing: 0, Not Upgrading: 117
2 not fully installed or removed.
Space needed: 0 B / 9,391 MB available

Setting up realtek-rtl8814au-dkms (5.8.5.1~git20240527.d8208c8-0kali1) …
Removing old realtek-rtl8814au/5.8.5.1~git20240527.d8208c8 DKMS files…
Deleting module realtek-rtl8814au/5.8.5.1~git20240527.d8208c8 completely from the DKMS tree.
Loading new realtek-rtl8814au/5.8.5.1~git20240527.d8208c8 DKMS files…
Building for 6.6.63-v8+

Building initial module realtek-rtl8814au/5.8.5.1~git20240527.d8208c8 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
Errors were encountered while processing:
realtek-rtl8814au-dkms
realtek-rtl88xxau-dkms
Error: Sub-process /usr/bin/dpkg returned an error code (1)

Please propose next steps or commands
Had to be in two separate messages, due to message limit

Thank you!

first of all you are using the wrong command to upgrade. the command is full-upgrade instead of upgrade

1 Like

The error has told you what to do:

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.

Maybe put the last 10 lines of the make.log file up and we can take a look at it.