Installing mongodb over Ubuntu 22.04

I just followed the 6.0 instructions starting here

If you look very carefully at the instructions you will see what you installed was for “focal” 6.0, which I have installed.

ubuntu focal/mongodb-org/6.0 multiverse

Not for Jammy.

1 Like

Yes, but it works … at least, apparently it works :slight_smile:

True, but it was compiled against a different set of libraries and assumptions. Who knows what evil lurks in the hearts of kernels. :smiley:

1 Like

You’re quite right, @Marshall_Giguere … however, this is development on a burn machine and as long as I can keep coding for a while, I’ll be fine until a canonical release emerges from the bubbling MongoDB cauldron.

Jack. I’m mulling over moving my home system to 22.04 which has focal 6.0 mongodb installed as a trail. There are things on 22.04 that are attractive, but I’m still reluctant to move my other servers to 22.04, at least for now.

I don’t think I can recall a situation like this going all the way back to mongodb 3.x.

Well, @Marshall_Giguere , look at it this way. Either MongoDb:

  • Cares about the problem and so will address it, or,
  • Doesn’t care about the problem, in which case they’ll do or not do what they want.

after 3 you fogot

dpkg -i libssl1.1_1.1.1f-1ubuntu2_amd64.deb

after this worket !

I personally gave up on Debian and Ubuntu… I tried with nearly 6 distros and just said forget it. It’s easier to install on windows and even Arch was a breeze if you use the AUR.

6 months since release and still no official support for Ubuntu 22.04. Really poor response from developers.

3 Likes

This is ridiculous its mid-October 2022 and still no way to install monogodb on 22.04 LTS?

4 Likes

Ridiculous and even with all these adaptations it doesn’t work well. I’m not going to remake a whole server for this. Does anyone know if Fedora is working normally?

According to the installation page Fedora is not in the list of supported Linux distributions:

As for latest versions of Linux, it appears that Ubuntu 22.04 is not the only recent distro not supported officially at this time, RHEL 9 is not listed as supported either and that came out 17 May. :frowning:

Trying to shoehorn the tool onto a non-supported platform is not advised. The steps listed in this thread is putting libraries that Ubuntu has deprecated and no longer ships for a reason back on to the system. This is never a good idea. It is better to file a bug report, or vote up one that was already submitted so that the MongoDB team knows that this is a serious issue.

I get that it sucks that MongoDB is behind in making sure the release of its software does not run on platforms that were released several months prior to MongoDB’s own release, but that’'s the way it is currently. Hopefully in the future there is not this type of problem when new versions of MongoDB are released.

2 Likes

Although I am also disappointed that 22.04 is not yet a supported platform I don’t support this comment. As an engineer who is building a data platform it is the duty of that role to understand the supported OS, architecture and other requirements before beginning that build out.

A sample of contemporary databases reveals a mixed bag and a trend toward the previous stable releases.

CouchDB

  • RHEL/CentOS 8
  • Ubuntu 20.04

Couchbase

  • RHEL 8.x
  • Ubuntu 20.04

Datastax Cassandra

  • RHEL/Centos/OEL 8
  • Ubuntu 20.04

Db2

  • RHEL 8.1
  • Ubuntu 20.04

Elasticsearch

  • RHEL 9
  • Ubuntu 22.04

MariaDB

  • RHEL/Rocky 9
  • SLES 15
  • Ubuntu 20.04

Oracle 21c

  • RHEL/OEL 8.2
  • SLES 15

ScyllaDB

  • Rocky/RHEL 8
  • Ubuntu 22.04

SQL Server

  • RHEL 8.x
  • SLES 15
  • Ubuntu 20.04
3 Likes

This solutions is WORKED on my Ubuntu 22.04!!!
But need to follow the Fernando’s command to install libssl1.1, otherwise the package would not be found. Glad to have you guys. Thanks

So if you need a recap:

  1. sudo apt install dirmngr gnupg apt-transport-https ca-certificates software-properties-common
  2. echo "deb http://security.ubuntu.com/ubuntu impish-security main" | sudo tee /etc/apt/sources.list.d/impish-security.list
  3. Go to root user sudo -i then paste this wget http://archive.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.1f-1ubuntu2_amd64.deb
  4. Still run dpkg -i libssl1.1_1.1.1f-1ubuntu2_amd64.deb command on the root user, and so on.
  5. apt update
  6. apt install libssl1.1
  7. wget -qO - https://www.mongodb.org/static/pgp/server-5.0.asc | sudo apt-key add -
  8. echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu focal/mongodb-org/5.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-5.0.list
  9. apt update
  10. apt install -y mongodb-org
1 Like

I just want to call out here that by installing the package mentioned above, you are introducing vulnerabilities to your system. Again, there is a reason that Ubuntu (and other distros) are no longer shipping this version.

As a test, I started a container running Ubuntu 22.04, installed this package as mentioned above, and then ran a scan with a couple of container scanning tools.

According to Snyk there are 9 vulnerabilities (6 medium severity and 3 high severity) in this version of libssl.

According to Grype, there are 13 vulnerabilities (4 low, 6 medium, 3 high):

image

Sure these issues still exist under 20.04 (and any distro that ships this version), but I don’t know if people are thinking about the implications of installing deprecated versions of libraries on newer systems.

Again I would file bug requests, or upvote an existing bug request, as that shows MongoDB that this is something they should focus on. While Stennie and other people report on what they see here to others within the MongoDB organization, bug reports get more traction and notice within MongoDB.

5 Likes

I installed the 6.0.3~rc2 on Ubuntu 22.04 no workarounds So it looks like it is close. :crossed_fingers:

1 Like

Chris;

That is excellent news.

Version 6.0.3 has been released on github!

But the standard installation way does not work yet:

sudo apt-get install -y mongodb-org=6.0.3 …

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

1 Like

Yep!

Work fine for me(set repo jammy):

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 jammy/mongodb-org/6.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-6.0.list

sudo apt-get update

sudo apt-get install mongodb-org
1 Like