Hi,
I’m unable to install mongodb-org on ubuntu - 22.04 LTS. Somehow my VM got crashed luckily I had some old backup data which are on mongodb 5 . So I want to import my old existing data of mongodb server 5 to the newly created mongodb server 5. But unfortunately my installation is failing. Here are the below errors what I faced
vboxuser@Ubuntu:~/Downloads$ wget -qO - https://www.mongodb.org/static/pgp/server-5.0.asc | gpg --dearmor | sudo tee /usr/share/keyrings/mongodb.gpg > /dev/null
vboxuser@Ubuntu:~/Downloads$ echo "deb [ arch=amd64,arm64 signed-by=/usr/share/keyrings/mongodb.gpg ] https://repo.mongodb.org/apt/ubuntu jammy/mongodb-org/5.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-5.0.list
deb [ arch=amd64,arm64 signed-by=/usr/share/keyrings/mongodb.gpg ] https://repo.mongodb.org/apt/ubuntu jammy/mongodb-org/5.0 multiverse
vboxuser@Ubuntu:~/Downloads$ sudo apt update
Hit:1 https://dl.google.com/linux/chrome/deb stable InRelease
Ign:2 https://repo.mongodb.org/apt/ubuntu jammy/mongodb-org/5.0 InRelease
Hit:3 https://repo.mongodb.org/apt/ubuntu jammy/mongodb-org/5.0 Release
Hit:5 http://in.archive.ubuntu.com/ubuntu jammy InRelease
Hit:6 http://in.archive.ubuntu.com/ubuntu jammy-backports InRelease
Get:7 http://security.ubuntu.com/ubuntu jammy-security InRelease [110 kB]
Get:8 http://in.archive.ubuntu.com/ubuntu jammy-updates InRelease [119 kB]
Fetched 229 kB in 7s (31.7 kB/s)
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
68 packages can be upgraded. Run 'apt list --upgradable' to see them.
vboxuser@Ubuntu:~/Downloads$ sudo apt install mongodb-org
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package mongodb-org
one thing I observed the following url is getting Ignored
https://repo.mongodb.org/apt/ubuntu jammy/mongodb-org/5.0 InRelease
Try to use “ubuntu focal” instead of “ubuntu jammy”
Now I got some other error after updating the ubuntu jammy
to ubuntu focal
$ sudo apt install mongodb-org
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.
Hmmm, in that case docker is a way to go ![:slight_smile: :slight_smile:](https://www.mongodb.com/community/forums/images/emoji/apple/slight_smile.png?v=12)
Did the issue got solved? If yes then please share me the reference material. I am also facing the same issues as you faced while installing MongoDB 5.0 on Ubuntu 22.04. Thanks in advance!