How to install mongodb 6.0 on Ubuntu 22.04

Hello! I try to install mongoDB community server 6.0 on Ubuntu 22.04. Belows are my installation process.

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

wget -qO - https://www.mongodb.org/static/pgp/server-6.0.asc | sudo apt-key add -
echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu focal/mongodb-org/6.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-6.0.list

But libssl1.1 is not installed and brings the errors when executing the installation.

sudo apt update
sudo apt install -y mongodb-org

Belows are the error messgaes.

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

So I downloaded the installation deb file from the site and execute it. But the same errors are thrown. Any reply will be thanksful. Best regards

Ubuntu 20.04 is the latest supported Ubuntu.

Keep an eye on https://jira.mongodb.org/browse/SERVER-62300

Use the supported platform or you can run it in Docker.

1 Like