Ubiquity AP

Installing Unifi Controller (UniFi Network Servers) on Debian 12

Posted by

It seems the Unifi Controller, at time of writing, is horribly outdated. It relies on Mongo DB < 5.0.4.4, which isn’t quite end of life at time of writing but it goes EOL in Feb 2024.

To install Unifi Controller on Debian 12 you need to:

# Add pre-requisites
sudo apt-get update && sudo apt-get install ca-certificates apt-transport-https

# Add Unifi repo and key
sudo echo 'deb [ arch=amd64,arm64 ] https://www.ui.com/downloads/unifi/debian stable ubiquiti' > /etc/apt/sources.list.d/100-ubnt-unifi.list

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

# Add Mongo 4.4 repo and key
sudo echo 'deb http://repo.mongodb.org/apt/debian buster/mongodb-org/4.4 main' > /etc/apt/sources.list.d/mongodb-org-4.4.list

curl -fsSL https://pgp.mongodb.com/server-4.4.asc | sudo gpg -o /etc/apt/trusted.gpg.d/mongodb-server-4.4.gpg --dearmor

# Download and install libssl1.1
wget http://ftp.us.debian.org/debian/pool/main/o/openssl/libssl1.1_1.1.1w-0+deb11u1_amd64.deb

sudo dpkg -i libssl1.1_1.1.1w-0+deb11u1_amd64.deb

# Finally install unifi
sudo apt-get update && sudo apt-get install unifi -y

One comment

Leave a Reply

Your email address will not be published. Required fields are marked *