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.


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.

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 bullseye/mongodb-org/6.0 main
deb jammy/mongodb-org/6.0 multiverse 

root@......:~# ldd /usr/bin/mongod (0x00007ffed03db000) => /lib/x86_64-linux-gnu/ (0x00007f30853d3000) => /lib/x86_64-linux-gnu/ (0x00007f30853a4000) => /lib/x86_64-linux-gnu/ (0x00007f3085393000) => /lib/x86_64-linux-gnu/ (0x00007f307e400000) => /lib/x86_64-linux-gnu/ (0x00007f30852ea000) => /lib/x86_64-linux-gnu/ (0x00007f307e921000) => /lib/x86_64-linux-gnu/ (0x00007f30852c8000) => /lib/x86_64-linux-gnu/ (0x00007f307e21f000)
	/lib64/ (0x00007f3085488000) => /lib/x86_64-linux-gnu/ (0x00007f3085299000) => /lib/x86_64-linux-gnu/ (0x00007f307e8f0000) => /lib/x86_64-linux-gnu/ (0x00007f307e8d1000) => /lib/x86_64-linux-gnu/ (0x00007f307e88e000) => /lib/x86_64-linux-gnu/ (0x00007f307e20b000) => /lib/x86_64-linux-gnu/ (0x00007f307e1b9000) => /lib/x86_64-linux-gnu/ (0x00007f307e15a000) => /lib/x86_64-linux-gnu/ (0x00007f307e14a000) => /lib/x86_64-linux-gnu/ (0x00007f307e08e000) => /lib/x86_64-linux-gnu/ (0x00007f307e081000) => /lib/x86_64-linux-gnu/ (0x00007f307e062000) => /lib/x86_64-linux-gnu/ (0x00007f307deac000) => /lib/x86_64-linux-gnu/ (0x00007f307dc00000) => /lib/x86_64-linux-gnu/ (0x00007f307de63000) => /lib/x86_64-linux-gnu/ (0x00007f307dbb2000) => /lib/x86_64-linux-gnu/ (0x00007f307db31000) => /lib/x86_64-linux-gnu/ (0x00007f307da57000) => /lib/x86_64-linux-gnu/ (0x00007f307de36000) => /lib/x86_64-linux-gnu/ (0x00007f307e884000) => /lib/x86_64-linux-gnu/ (0x00007f307de28000) => /lib/x86_64-linux-gnu/ (0x00007f307da3a000) => /lib/x86_64-linux-gnu/ (0x00007f307da17000) => /lib/x86_64-linux-gnu/ (0x00007f307d8e3000) => /lib/x86_64-linux-gnu/ (0x00007f307d8ce000) => /lib/x86_64-linux-gnu/ (0x00007f307de21000) => /lib/x86_64-linux-gnu/ (0x00007f307d8c2000)

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


Tomasz Jeliński
Senior IT Specialist
Palac Kultury Zaglebia

1 Like

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