Not able to install Mongodb in Ubuntu 22.04
5,772
Solution 1
Below solution worked for me to install mongodb
1.install libssl1.1
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
2.then install mongodb-org-server_5.0.7_amd64.deb downloaded from mongodb.com
Instructions used from this link to install libssl1.1 in Ubuntu 22.04 LTS
Solution 2
The commands your're using do not work on Ubuntu Jammy(22.04 LTS), those are only suitable for Ubuntu Focal(20.04 LTS). The Mongodb team is still working on the support for Ubuntu Jammy(x86), you can follow the status of this issue on https://jira.mongodb.org/browse/SERVER-62300
Related videos on Youtube
Author by
Mihir Panchal
Updated on January 04, 2023Comments
-
Mihir Panchal over 1 year
I am not able to install MongoDB on Ubuntu 22.04. I am following the official documentation for the installation.
This is the output I am getting after following the installation instructions:
https://repo.mongodb.org/apt/ubuntu/focal/mongodb-org/5.0/Release.gpg: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.
-
Admin about 2 yearsPlease copy/paste and format text instead of pictures of text. A picture (of text) can't be read on a text-only terminal, can't be copied from (edited, tried, and made to work), AND makes one take an action to even read your Question. Since we're all volunteers, some won't click. Please read askubuntu.com/help/formatting
-
Admin about 2 yearsTelling us which remote procedure (RP) you "followed" doesn't help us help you for N reasons: 1) It's remote. Will the link exist tomorrow? 2) Reading the RP doesn't tell us how accurately you "followed" it. Did you suffer typos or missed lines? We have. 3) Reading the RP omits the error messages you got on your system. These error messages (and the commands that caused them) are key elements in any diagnosis.
-
Admin about 2 yearsUbuntu 22.04 doesn't yet exist; it's currently the development release Ubuntu jammy and remains that until it reaches RC state which isn't expected until after 14 April 2022, and isn't on-topic here until release on 21 April 2022. discourse.ubuntu.com/t/jammy-jellyfish-release-schedule/23906 Please refer askubuntu.com/help/on-topic. For support issues with Ubuntu jammy you'll need to use a #ubuntu-next or #ubuntu+1 site (IRC, UF etc)
-
Admin about 2 yearsIf you wish to report bugs, firstly thank you for helping test the release, but please see help.ubuntu.com/community/ReportingBugs and use a #ubuntu+1 site such as IRC, ubuntuforums.org etc. This site isn't tracked for ubuntu+1 or #ubuntu-next issues
-
Admin about 2 yearsYour
apt update
output shows mixed focal and jammy sources. Looks like you added wrong-version focal mongodb sources to a jammy system. Consult mongodb upstream for jammy install instructions. Since 22.04 hasn't been released yet, those instructions might not be published yet. -
Admin about 2 yearshow about i install MongoDB in Ubuntu 20.04 and then upgrade to Ubuntu 22.04, will it work?
-
Admin about 2 yearsYou'll more likely find the focal packages will not be available for jammy which will prevent a release-upgrade from occurring unless you remove those 3rd party packages first, which puts you back where you are here. Ubuntu jammy is still in beta testing being an unreleased product intended for testing only, so problems are discovered, reported & issues can be fixed in the remaining time before release.
-
Admin almost 2 yearsDoes this answer your question? apt-key deprecation warning when updating system
-