That is the single instruction how to install Alfa AWUS036ACH WiFi adapter on Debian based Linux (including M1 Mac CPU).
sudo apt update
uname -r # get kernel release
apt-cache search linux-headers # Choose header files for Linux x.x.x-amd64
sudo apt install linux-headers-x.x.x # (Replace X)
sudo shutdown -r 0 # Reboot
git clone https://github.com/aircrack-ng/rtl8812au.git # Download the driver
cd rtl8812au # change directory
sudo make && make install # install the driver
sudo shutdown -r 0 # reboot
UPD. Big thanks to Louay112 (https://github.com/Louay112) for his update (https://github.com/aircrack-ng/rtl8812au/issues/1131#issuecomment-1943183513)
sudo apt-get install realtek-rtl88xxau-dkms
cd /usr/src/realtek-rtl88xxau-5.6.4.2\~git20240726.63cf0b4/
sudo nano Makefile
# under the dkms_install: section find dkms install -m 8812au -v $(DRIVER_VERSION) line and add --force to the end. The final line should be
dkms install -m 8812au -v $(DRIVER_VERSION) --force
sudo make dkms_install