echo 'deb http://www.ui.com/downloads/unifi/debian stable ubiquiti' | sudo tee /etc/apt/sources.list.d/100-ubnt-unifi.list

wget -O /etc/apt/trusted.gpg.d/unifi-repo.gpg https://dl.ubnt.com/unifi/unifi-repo.gpg

apt-get update; sudo apt-get install unifi -y

systemctl stop mongodb systemctl disable mongodb

reboot

https://{rpiip}:8443