Mongo 6.x on Debian 12

I recently installed Debian 12 to ‘check it out’. One of the important tools for me is MongoDB Community Server. Unfortunately, there is no Debian 12 precompiled binary available (yet). I tried compiling from source but got an error about 15 minutes into the compilation process. Wondering whether anyone has had success building a binary for Debian 12 or whether one is already publicly available.

Thanks.

I see 7.0-enterprise listing Debian 12 in Supported Platforms so I’m guessing you’ll see it soon for community too.

In the meantime you could run it in a containerised install on Debian 12

Thanks Chris. I honestly didn’t think of doing that. Already have docker setup on the computer so that wouldn’t be a problem.

Thanks again.

You can install MongoDB from the “bullseye” (Debian 11) repository on Debian 12, but you’ll need to also add bullseye to your sources.list to get the libssl1.1 package on which it depends (Debian 12 provides libssl3 which is not ABI-compatible with libssl1.1). It’s a bit hackish but it does work well in my own tests (and is simpler than recompiling or going through a container).

But I do hope we’ll get pre-compiled binaries for Debian 12 (“bookworm”) soon enough so we don’t have to do those kind of tricks.

Hello,
You can add MongoDB official Ubuntu 22.04LTS (jammy) repository for Mongodb-server 6.0.x (community edition). Ubuntu 22.04LTS and Debian 12 uses libssl3.x and Debian 12 meet dependencies for Ubuntu 22.04LTS mongodb-server packages.

# /etc/apt/sources.list.d/mongo-db-repo.list 
#deb https://repo.mongodb.org/apt/debian bullseye/mongodb-org/6.0 main
deb https://repo.mongodb.org/apt/ubuntu jammy/mongodb-org/6.0 multiverse 

root@......:~# ldd /usr/bin/mongod
	linux-vdso.so.1 (0x00007ffed03db000)
	libcurl.so.4 => /lib/x86_64-linux-gnu/libcurl.so.4 (0x00007f30853d3000)
	liblzma.so.5 => /lib/x86_64-linux-gnu/liblzma.so.5 (0x00007f30853a4000)
	libresolv.so.2 => /lib/x86_64-linux-gnu/libresolv.so.2 (0x00007f3085393000)
	libcrypto.so.3 => /lib/x86_64-linux-gnu/libcrypto.so.3 (0x00007f307e400000)
	libssl.so.3 => /lib/x86_64-linux-gnu/libssl.so.3 (0x00007f30852ea000)
	libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f307e921000)
	libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f30852c8000)
	libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f307e21f000)
	/lib64/ld-linux-x86-64.so.2 (0x00007f3085488000)
	libnghttp2.so.14 => /lib/x86_64-linux-gnu/libnghttp2.so.14 (0x00007f3085299000)
	libidn2.so.0 => /lib/x86_64-linux-gnu/libidn2.so.0 (0x00007f307e8f0000)
	librtmp.so.1 => /lib/x86_64-linux-gnu/librtmp.so.1 (0x00007f307e8d1000)
	libssh2.so.1 => /lib/x86_64-linux-gnu/libssh2.so.1 (0x00007f307e88e000)
	libpsl.so.5 => /lib/x86_64-linux-gnu/libpsl.so.5 (0x00007f307e20b000)
	libgssapi_krb5.so.2 => /lib/x86_64-linux-gnu/libgssapi_krb5.so.2 (0x00007f307e1b9000)
	libldap-2.5.so.0 => /lib/x86_64-linux-gnu/libldap-2.5.so.0 (0x00007f307e15a000)
	liblber-2.5.so.0 => /lib/x86_64-linux-gnu/liblber-2.5.so.0 (0x00007f307e14a000)
	libzstd.so.1 => /lib/x86_64-linux-gnu/libzstd.so.1 (0x00007f307e08e000)
	libbrotlidec.so.1 => /lib/x86_64-linux-gnu/libbrotlidec.so.1 (0x00007f307e081000)
	libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007f307e062000)
	libunistring.so.2 => /lib/x86_64-linux-gnu/libunistring.so.2 (0x00007f307deac000)
	libgnutls.so.30 => /lib/x86_64-linux-gnu/libgnutls.so.30 (0x00007f307dc00000)
	libhogweed.so.6 => /lib/x86_64-linux-gnu/libhogweed.so.6 (0x00007f307de63000)
	libnettle.so.8 => /lib/x86_64-linux-gnu/libnettle.so.8 (0x00007f307dbb2000)
	libgmp.so.10 => /lib/x86_64-linux-gnu/libgmp.so.10 (0x00007f307db31000)
	libkrb5.so.3 => /lib/x86_64-linux-gnu/libkrb5.so.3 (0x00007f307da57000)
	libk5crypto.so.3 => /lib/x86_64-linux-gnu/libk5crypto.so.3 (0x00007f307de36000)
	libcom_err.so.2 => /lib/x86_64-linux-gnu/libcom_err.so.2 (0x00007f307e884000)
	libkrb5support.so.0 => /lib/x86_64-linux-gnu/libkrb5support.so.0 (0x00007f307de28000)
	libsasl2.so.2 => /lib/x86_64-linux-gnu/libsasl2.so.2 (0x00007f307da3a000)
	libbrotlicommon.so.1 => /lib/x86_64-linux-gnu/libbrotlicommon.so.1 (0x00007f307da17000)
	libp11-kit.so.0 => /lib/x86_64-linux-gnu/libp11-kit.so.0 (0x00007f307d8e3000)
	libtasn1.so.6 => /lib/x86_64-linux-gnu/libtasn1.so.6 (0x00007f307d8ce000)
	libkeyutils.so.1 => /lib/x86_64-linux-gnu/libkeyutils.so.1 (0x00007f307de21000)
	libffi.so.8 => /lib/x86_64-linux-gnu/libffi.so.8 (0x00007f307d8c2000)

I upgraded my mongod-db VM from Debian11 → Debian12 and it works like a charm !

Regards

Tomasz Jeliński
Senior IT Specialist
Palac Kultury Zaglebia

1 Like

Is Mongo 6.0 CE expected to be supported on Debian 12 (bookworm)?