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
As long as they do not break installed things, “archived” packages should always install and run without a problem. that is what happened in these lines.
Yet, keep in mind that, if you break things, the responsibility is yours because MongoDB Community 6 is not yet supported on Ubuntu 22 (is the enterprise version supported? I did not try).
PS: I found the package here: Index of /ubuntu/pool/main/o/openssl . there are a few others so check they are applicable instead of the one I use.
echo "deb http://security.ubuntu.com/ubuntu focal-security main" | sudo tee /etc/apt/sources.list.d/focal-security.list
With this one, it will not even require you to know what to install. it will fetch “1.1.1f-1ubuntu2.16” for amd64. (my other answer used ubuntu2.1~18).
Warning: apt-key is deprecated. Manage keyring files in trusted.gpg.d instead (see apt-key(8))
apt-key stores all keys in a single /etc/apt/trusted.gpg which seems to have its own issues (thus deprecated). It embeds to this file the .asc key files created with gpg --armor
the suggested way to store key files is to store .gpg files under /etc/apt/trusted.gpg.d/. if we have .asc file then gpg --dearmor takes its content and gives back .gpg content.
unless we are supplied directly with .gpg file by MongoDB (so be careful in the future), it is better to use
However it is only a warning. i.e. Don’t continue to use this its going away, there is a newer way of doing it now. I’m sure it will be addressed when the docs are updated.
The point I am making is that until the documentation/manual is updated the only change required to install on Ubuntu 22.04 is changing focal to jammy. There is no additional steps, a very small deviation from what is already documented.
If you trace back the release notes and related jiras there is outstanding items relating to updating the documentation.
I followed the instructions on the video to install MongoDB 6 on Ubuntu 22.04 (replaced focal with jammy and 5.0 and 6.0) but once I started, enabled and checked the status of mongod it gave me "failed (Result: core-dump). I’m running Ubuntu 22.04 in VirtualBox. I removed the installation thinking I may have done something wrong but got the same result. I don’t know what else to do.