1. Update Debian
sudo apt update
sudo apt upgrade -y
2. Instal kebutuhan
sudo apt install -y curl gnupg ca-certificates apt-transport-https
3. Tambah repository MongoDB
curl -fsSL https://pgp.mongodb.com/server-7.0.asc | \
sudo gpg --dearmor -o /usr/share/keyrings/mongodb-server-7.0.gpg
echo "deb [ arch=amd64 signed-by=/usr/share/keyrings/mongodb-server-7.0.gpg ] https://repo.mongodb.org/apt/debian bookworm/mongodb-org/7.0 main" | \
sudo tee /etc/apt/sources.list.d/mongodb-org-7.0.list
4. Tambah repository UniFi
curl -fsSL https://dl.ui.com/unifi/unifi-repo.gpg | \
sudo gpg --dearmor -o /usr/share/keyrings/unifi-repo.gpg
echo "deb [ arch=amd64 signed-by=/usr/share/keyrings/unifi-repo.gpg ] https://www.ui.com/downloads/unifi/debian stable ubiquiti" | \
sudo tee /etc/apt/sources.list.d/unifi.list
Langkah repository ini mengikuti metode APT yang disediakan Ubiquiti untuk Debian/Ubuntu.
check repository:
nano /etc/apt/sources.list.d/100-ubnt-unifi.list
" deb https://www.ui.com/downloads/unifi/debian unifi-7.4 ubiquiti "
5. Update dan instal UniFi
sudo apt update
sudo apt install unifi -y
Jika error
bellsoft-java25 but it is not installable or jdk-25 but it is not installable or openjdk-25-jdk but it is not installable or openjdk-25-jre but it is not installable or openjdk-25-jdk-headless but it is not installable or openjdk-25-jre-headless but it is not installable
Lakukan hal berikut:a. Tambahkan repository Adoptium Temurin
sudo apt update
sudo apt install -y wget apt-transport-https gpgTambahkan key:
wget -qO - https://packages.adoptium.net/artifactory/api/gpg/key/public | \
sudo gpg --dearmor -o /usr/share/keyrings/adoptium.gpgTambahkan repo:
echo "deb [signed-by=/usr/share/keyrings/adoptium.gpg] https://packages.adoptium.net/artifactory/deb bookworm main" | \
sudo tee /etc/apt/sources.list.d/adoptium.list
Update:
sudo apt update
b. Instal Java 25
sudo apt install temurin-25-jre -yCek:
java -versionHarus muncul Java 25.
Selanjutnya dapat diteruskan langkah berikut:
G. Cek service
sudo systemctl status unifi
Jika belum jalan:
sudo systemctl start unifi
Aktif otomatis saat boot:
sudo systemctl enable unifi
7. Buka UniFi Controller
Dari komputer lain buka:
Reading package lists... Done Building dependency tree... Done Reading state information... Done E: Unable to locate package unifihttps://IP-DEBIAN:8443sudo apt install unifi -y
UPdate: error withPlease doing :rm -f /etc/apt/sources.list.d/100-ubnt-unifi.list apt updatecd /tmp wget https://dl.ui.com/unifi/10.4.57/unifi_sysvinit_all.debls -lh /tmp/unifi_sysvinit_all.debapt update apt install -y \ ca-certificates \ curl \ wget \ gnupg \ openjdk-17-jre-headlessapt install -y /tmp/unifi_sysvinit_all.debif error do: apt --fix-broken install -yapt install -y /tmp/unifi_sysvinit_all.debsystemctl enable --now unifisystemctl status unificeck port: ss -lntp | grep -E '8443|8080|8843|8880'Access server: https://IP-SERVER:8443