{"id":1700,"date":"2024-11-20T09:54:54","date_gmt":"2024-11-20T07:54:54","guid":{"rendered":"https:\/\/helia.ee\/koolitus\/?page_id=1700"},"modified":"2024-11-20T09:57:21","modified_gmt":"2024-11-20T07:57:21","slug":"how-to-guide-installing-unifi-network-application-to-debian-12-or-ubuntu-22-04-23-04","status":"publish","type":"page","link":"https:\/\/helia.ee\/koolitus\/?page_id=1700","title":{"rendered":"Installing Unify Network Application to Debian 12 (or Ubuntu 22.04 &#8211; 23.04)"},"content":{"rendered":"\n<p><\/p>\n\n\n\n<p>The guide provided on the Unifi help page is very outdated. Here are the up-to-date steps to install the Unifi Network Application (8+) to Debian 12 (or Ubuntu 22.04, 22.10, 23.04).<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"># Update package lists, upgrade all packages, and remove unnecessary packages\nsudo apt update &amp;&amp; sudo apt upgrade -y &amp;&amp; sudo apt autoremove -y\n \n# Install required packages\nsudo apt install -y gnupg curl ca-certificates apt-transport-https\n \n# Add MongoDB GPG key and repository\ncurl -fsSL https:\/\/www.mongodb.org\/static\/pgp\/server-7.0.asc | sudo gpg -o \/usr\/share\/keyrings\/mongodb-server-7.0.gpg --dearmor\necho \"deb [ arch=amd64 signed-by=\/usr\/share\/keyrings\/mongodb-server-7.0.gpg ] http:\/\/repo.mongodb.org\/apt\/debian bookworm\/mongodb-org\/7.0 main\" | sudo tee \/etc\/apt\/sources.list.d\/mongodb-org-7.0.list\n \n# Add Unifi GPG key and repository\ncurl -fsSL https:\/\/dl.ui.com\/unifi\/unifi-repo.gpg | sudo gpg -o \/usr\/share\/keyrings\/unifi-repo.gpg --dearmor\necho '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\n \n# Update package lists again to include the new repositories\nsudo apt update\n \n# Install MongoDB and Unifi\nsudo apt install -y mongodb-org\nsudo apt install -y unifi<\/pre>\n\n\n\n<p>If you are trying to update a previous install, you will need to create a backup of your current site (NOT export site), then install the new site as above (do not &#8220;restore&#8221; during install),&nbsp;<em>then<\/em>&nbsp;after you have created the new &#8220;blank&#8221; site, restore the backup.<\/p>\n\n\n\n<p>EDIT: If you are installing this to an ARM device (raspberry pi, for example), you will want to change&nbsp;<code>arch=amd64<\/code>&nbsp;to&nbsp;<code>arch=arm64<\/code>.<\/p>\n\n\n\n<p>EDIT 2: I separated out the steps to install mongo and unifi. Someone posted an error in the install process and I&nbsp;<em>suspect<\/em>&nbsp;it might have been caused by unifi trying to install before mongo was finished installing. Separating out the steps will ensure that mongo is installed before unifi tries to install.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The guide provided on the Unifi help page is very outdated. Here are the up-to-date steps to install the Unifi Network Application (8+) to Debian 12 (or Ubuntu 22.04, 22.10, 23.04). # Update package lists, upgrade all packages, and remove unnecessary packages sudo apt update &amp;&amp; sudo apt upgrade -y &amp;&amp; sudo apt autoremove -y [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":1703,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"class_list":["post-1700","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/helia.ee\/koolitus\/index.php?rest_route=\/wp\/v2\/pages\/1700","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/helia.ee\/koolitus\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/helia.ee\/koolitus\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/helia.ee\/koolitus\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/helia.ee\/koolitus\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1700"}],"version-history":[{"count":2,"href":"https:\/\/helia.ee\/koolitus\/index.php?rest_route=\/wp\/v2\/pages\/1700\/revisions"}],"predecessor-version":[{"id":1706,"href":"https:\/\/helia.ee\/koolitus\/index.php?rest_route=\/wp\/v2\/pages\/1700\/revisions\/1706"}],"up":[{"embeddable":true,"href":"https:\/\/helia.ee\/koolitus\/index.php?rest_route=\/wp\/v2\/pages\/1703"}],"wp:attachment":[{"href":"https:\/\/helia.ee\/koolitus\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1700"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}