TP-Link WN722N on Ubuntu 17.04 and other versions
I had problems installing the TP-Link TL-WN722N wireless USB adapter on my Ubuntu 17.04 laptop and after trying a lot of tutorials I found the solution without installing additional drivers.
All you have to do is to add the following 2 lines of code at the end of the file /etc/NetworkManager/NetworkManager.conf
I used the command sudo gedit /etc/NetworkManager/NetworkManager.conf and saved the file.
After that you should reboot your machine, plug the TP-Link USB WIFI adapter, connect to the desired network and you should have a working internet connection. Now enjoy it!