Score:2

Unable to install MongoDB on Ubuntu 22.04

co flag

I'm trying to install MongoDB on Ubuntu 22.04 using this command:

sudo apt-get install -y mongodb-org

But I'm getting this error:

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
E: Unable to correct problems, you have held broken packages.

Any idea on how to fix this? Thanks!!

user535733 avatar
cn flag
The use of `-y` is not recommended unless you fully understand the potential consequences.
Terrance avatar
id flag
Please see: https://askubuntu.com/a/842599/231142 MongoDB is not ready for Jammy yet so you need to use the Focal repos for now. It is at the bottom of that answer in the 22.04 and MongoDB 6.0
Score:2
in flag

One option would be to download the libssl1.1_1.1.1f package and manually install it via Terminal with:

sudo dpkg -i libssl1.1_1.1.1f-1ubuntu2_amd64.deb
Score:0
bw flag

You tried this command?

echo "deb http://security.ubuntu.com/ubuntu impish-security main" | sudo tee /etc/apt/sources.list.d/impish-security.list
sudo apt-get update
sudo apt-get install libssl1.1

Reference: https://www.mongodb.com/community/forums/t/installing-mongodb-over-ubuntu-22-04/159931/3

David avatar
cn flag
This command before what?
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.