This should work in both Debian Jessie and Ubuntu Xenial: git clone https://github.com/gnab/rtl8812au sed -i -e 's/CONFIG_PLATFORM_I386_PC = y/CONFIG_PLATFORM_I386_PC = n/' \ -e 's/CONFIG_PLATFORM_ARM_RPI = n/CONFIG_PLATFORM_ARM_RPI = y/' rtl8812au/Makefile sudo apt install build-essential dkms sudo mv rtl8812au /usr/src/8812au-4.2.2 sudo dkms add -m 8812au -v 4.2.2 sudo dkms build -m 8812au -v 4.2.2 sudo dkms install -m 8812au -v 4.2.2 And this is the result: root@clearfogpro:~#