Upgrade Unifi V4.7.4 to V5.0.6 Ubuntu Base

# apt-get update

# wget http://dl.ubnt.com/unifi/5.0.6/unifi_sysvinit_all.deb

# dpkg -i unifi_sysvinit_all.deb

# reboot