How to downgrade my MongoDB version from 4.4 to the version 3.8 on my Ubuntu 20.04

Hello community, I am trying to downgrade my MongoDB version from 4.4 to the version 3.8 on my Ubuntu 20.04 but it seems the repository is not found. Any help would be highly appreciated.

Welcome to the MongoDB Community Forums @Ranji_Raj!

There is no MongoDB 3.8 server release series, so I assume you are referring to 3.6.

Ubuntu 20.04 was released almost three years after MongoDB 3.6, so there is no corresponding package repository. Per the MongoDB Production Notes, Ubuntu 20.04 packages are available for MongoDB 4.4 and newer.

Instead of installing the legacy mongo shell, I recommend trying the new MongoDB shell (mongosh) which is compatible with a broader range of server versions.

Note: MongoDB 3.6 reached end of life in April, 2021 and is no longer actively supported. I highly recommend planning an upgrade to MongoDB 4.2 or later (4.0 will reach EOL in April, 2022).

Regards,
Stennie