Upgrade stuck @ 3.6. No 4.0 packages for Ubuntu Jammy (22.04)

I have inherited an old server that uses MongoDB. I’ve successfully upgraded to 3.6 but Ubuntu 22.04 no longer contains MongoDB so it was removed when I upgraded. I’m trying to upgrade to 4.0 but https://www.mongodb.com/try/download/community-edition/releases/archive doesn’t have Ubuntu 22.04 deb packages. I also checked MongoDB Repositories and it only has 4.2 and higher.

I’d love to get this upgraded to a newer OS and MongoDB but I am stuck here for now.

Hi

Support for Ubuntu 22.04 was first included with MongoDB 6.0.4

To run version 4.0 on a supported OS version mongodb could be run in a docker(or other) container running ubuntu 14.04, 16.04 or 18.04. mongo:4.0 container works for this purpose.

The Linux tarball installation may work on Ubuntu 22.04 this ran in a very basic configuration on a ubuntu 22.04 contianer.

Using the tarball or containers will allow the progression along the upgrade path until 6.0 where Ubuntu 22.04 is supported.

Thanks, yes, I ended up finding this and using it. I’m going to use that to upgrade all the way to 8.0 and then switch to Ubuntu 24.04 and use the deb repo from there on. Thanks Chris.

1 Like