MongoDB Installation Difficulties - Ubuntu 20.04

I have been having trouble installing MongoDB on Ubuntu 20.04 (x86_64). When I run “sudo nano /var/lib/dpkg/status” , the MongoDB database tools package states:

Package: mongodb-database-tools
Status: install ok not-installed
Priority: optional
Section: database
Architecture: amd64

Is there any way I can correct this error and also how do i correctly install and utilize MongoDB on my OS after I have fixed the problem. All articles online lead me to the same errors that forced me to uninstall MongoDB several times after multiple installations. Thanks.

1 Like

Hi @I-Ben and welcome to the forums,

All articles online lead me to the same errors that forced me to uninstall MongoDB several times after multiple installations.

Would you be able to share which installation instructions did you follow ?

Please see Install MongoDB on Ubuntu to install the current stable version of MongoDB 4.4 Community Edition.

If you’re still encountering an issue please provide the installation steps that you tried and any error messages while performing the instructions.

Regards,
Wan.

1 Like

Hello everyone,
I’m facing some similar issues while installing MongoDB in Ubuntu 20.04, the path I’m following to install it is according to the official docs.

sudo apt-get install -y mongodb-org

After running the above command I’m facing the following errors:

Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 mongodb-org-mongos : Depends: libssl1.1 (>= 1.1.1) but it is not installable
 mongodb-org-server : Depends: libssl1.1 (>= 1.1.1) but it is not installable
 mongodb-org-shell : Depends: libssl1.1 (>= 1.1.1) but it is not installable
E: Unable to correct problems, you have held broken packages.

I found an probable solution for this, but don’t know if it is Safe or not.
askubuntu

Thanks!

Hi @Raven_Soni.

Looks like you have a similar error messages mentioned on: Installing mongodb over Ubuntu 22.04 - #6 by Jack_Woehr

Regards,
Wan.

1 Like