RTL8822be driver for Ubuntu 18.04 and 20.04
The RTL8822be chipset does not have a compatible driver when using kernel 5.0 and above. As a result, either your wifi adapter will be undetected or you will be unable to see any visible networks when scanning. I've tried many suggestions online but none of them worked for me.
You originally posted this solution in your question:
Finally, I came across a solution which works.
sudo apt install git dkms git clone https://github.com/aircrack-ng/rtl8812au.git cd rtl8812au sudo make dkms_install