UniFi – How to Install & Update via APT on Debian
If you like to install and update Webmin via APT, edit the /etc/apt/sources.list file on your system. Add the repo, which would be one of these depending on the specific release branch wanted:
deb http://www.ubnt.com/downloads/unifi/debian testing ubiquiti deb http://www.ubnt.com/downloads/unifi/debian oldstable ubiquiti deb http://www.ubnt.com/downloads/unifi/debian stable ubiquiti
For Ubiquiti / Debian, you will need to install dirmngr with:
apt-get install dirmngr
Add the GPG Keys:
apt-key adv --keyserver keyserver.ubuntu.com --recv 06E85760C0A52C50
Or over HTTP use:
hkp://keyserver.ubuntu.com:80
Update. Retrieve the latest package information:
sudo apt-get update
Install and upgrade the UniFi controller:
apt-get install unifi