(Based on CATALUNA84's answer in https://askubuntu.com/questions/802205/how-to-install-tp-link-archer-t4u-driver)
Run the following to install Driver from https://github.com/EntropicEffect/rtl8822bu
git clone https://github.com/EntropicEffect/rtl8822bu
sudo apt-get install build-essential dkms
cd rtl8822bu
make
sudo make install
sudo modprobe 88x2bu
At this point you should have Wi-Fi (both 2.4GHz and 5GHz). Connect to your Wi-Fi.
Next, follow these steps to refine the installation and for an automatic rebuild on Ubuntu kernel image updates:
sudo dkms add .
sudo dkms install -m 88x2bu -v 1.1