F5F Stay Refreshed Software Operating Systems MongoDB installation issues in UniFi Controller on Ubuntu 18.04 Problem encountered during setup

MongoDB installation issues in UniFi Controller on Ubuntu 18.04 Problem encountered during setup

MongoDB installation issues in UniFi Controller on Ubuntu 18.04 Problem encountered during setup

W
Willhermina
Member
82
06-26-2025, 02:41 AM
#1
I've searched extensively online but still face the issue. My UniFi controller is operational, yet I can't access the web interface. The problem seems linked to a corrupted MongoDB installation. It functioned properly in version 17.10, but after upgrading to 18.04, the connection broke due to MongoDB incompatibility. I attempted to reinstall via the official site, but now apt upgrades trigger errors. The missing dependencies include mongodb-server, mongodb-org-mongos, and mongodb-org-tools. I tried running 'apt --fix-broken install' and it helped partially. Some packages like mongodb-org-mongos and mongodb-server are still missing. I recommend using 'sudo apt autoremove' to clean up unnecessary items and then installing the required packages. Let me know if you'd like further guidance.
W
Willhermina
06-26-2025, 02:41 AM #1

I've searched extensively online but still face the issue. My UniFi controller is operational, yet I can't access the web interface. The problem seems linked to a corrupted MongoDB installation. It functioned properly in version 17.10, but after upgrading to 18.04, the connection broke due to MongoDB incompatibility. I attempted to reinstall via the official site, but now apt upgrades trigger errors. The missing dependencies include mongodb-server, mongodb-org-mongos, and mongodb-org-tools. I tried running 'apt --fix-broken install' and it helped partially. Some packages like mongodb-org-mongos and mongodb-server are still missing. I recommend using 'sudo apt autoremove' to clean up unnecessary items and then installing the required packages. Let me know if you'd like further guidance.

D
DaSuperMonkey
Junior Member
11
06-26-2025, 06:03 AM
#2
There are conflicting repositories (mongodb-server-core and mongodb-org-server). They appear to be duplicates, so installation cannot proceed. Clear all Mongo packages and repositories as Ubuntu supplies its own versions, then retry.
D
DaSuperMonkey
06-26-2025, 06:03 AM #2

There are conflicting repositories (mongodb-server-core and mongodb-org-server). They appear to be duplicates, so installation cannot proceed. Clear all Mongo packages and repositories as Ubuntu supplies its own versions, then retry.

A
103
07-03-2025, 11:13 AM
#3
I attempted to clean up mongodb and mongoldb-org using apt purge, but they kept prompting for "--fix broken installation" instead.
A
Autobotforever
07-03-2025, 11:13 AM #3

I attempted to clean up mongodb and mongoldb-org using apt purge, but they kept prompting for "--fix broken installation" instead.

K
Krovel
Member
60
07-03-2025, 04:47 PM
#4
You're seeing a message indicating that the command isn't installed. The fix you applied to NVM resolved the issue, but now you need to reinstall or update your package manager.
K
Krovel
07-03-2025, 04:47 PM #4

You're seeing a message indicating that the command isn't installed. The fix you applied to NVM resolved the issue, but now you need to reinstall or update your package manager.

P
POTTER1904
Member
70
07-03-2025, 06:29 PM
#5
Debian has some issues. Consider using dpkg and removing mongodb-server-core.
P
POTTER1904
07-03-2025, 06:29 PM #5

Debian has some issues. Consider using dpkg and removing mongodb-server-core.

H
homedawg_
Member
131
07-09-2025, 01:08 PM
#6
Run the removal commands first, then continue with setup. Ubuntu 19.04: add configuration files and update repos. Install Unifi using the provided instructions. Source: https://help.ubnt.com/hc/en-us/articles/...-or-Ubuntu
H
homedawg_
07-09-2025, 01:08 PM #6

Run the removal commands first, then continue with setup. Ubuntu 19.04: add configuration files and update repos. Install Unifi using the provided instructions. Source: https://help.ubnt.com/hc/en-us/articles/...-or-Ubuntu