Unifi Upgrade from 5.7.23 to 5.8.24 MongoDB upgrade issue
-
So I updated my Unifi Sources as the below:
https://help.ubnt.com/hc/en-us/articles/220066768-UniFi-How-to-Install-Update-via-APT-on-Debian-or-Ubuntu based on this1. Use the following command to add a new source list: echo 'deb http://www.ubnt.com/downloads/unifi/debian stable ubiquiti' | sudo tee /etc/apt/sources.list.d/100-ubnt-unifi.list NOTE: Using http://www.ubnt.com/downloads/unifi/debian on a browser will result in a 403 Forbidden page. This is because we do not allow direct listing/access to this link. The URL is only meant to be used when using the CLI commands as in the one shown above. 2. Add the GPG Keys. To add the GPG Keys use one of the two methods described below, Method A is recommended. When using the commands below, it is assumed you have sudo and wget installed, more information about sudo can be found here, and wget here. User Tip: For Ubuntu 18.04, run the following commands before installing UniFi in step 4. sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 0C49F3730359A14518585931BC711F9BA15703C6 echo "deb [ arch=amd64,arm64 ] http://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.4 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.4.list sudo apt update. Click to copy See an example of what scripts the Community is using to install the UniFi Controller on Ubuntu 16.04 and 18.04 in this Community post. (Method A) Download and install the following trusted key into /etc/apt/trusted.gpg.d sudo wget -O /etc/apt/trusted.gpg.d/unifi-repo.gpg https://dl.ubnt.com/unifi/unifi-repo.gpg (Method B) Using apt-key. sudo apt-key adv --keyserver keyserver.ubuntu.com --recv 06E85760C0A52C50 3. Update. Retrieve the latest package information. Note: If this results in an error, please check the User Tip below. sudo apt update 4. Install and upgrade the UniFi controller. sudo apt install unifi
But I got this error
I fixed that error as below... since I needed it
sudo dpkg -i --force-all /var/cache/apt/archives/mongodb-org-server_3.4.16_amd64.deb sudo apt-get install -f
Then it upgraded properly to Unifi 5.8.24
Maybe this will help someone.