Could not start mongodb in ubuntu

Hi,

I have installed mongodb compass application, In which could not establish a connection. Also mongodb server status returns the failed status. I am using ubuntu 22 64 bit version. Please help me to fix this. I have shared my issue screenshot below.

ILL means illegal instructions
Check whether the mongodb version you are installing is supported by your OS or not
Also check CPU microarchitecture reqmnts from compatibility matrix
You can check our forum threads for similiar issues faced by others

1 Like

I installed mongodb version 4.4.8 this only works for me. I tried below commands, which works but I could not install latest versions like 5, 6.

When installing for V5 or 6, I got below error message.

Illegal instruction (core dumped)

There is any option to use V5 or V6. Please verify and let me know.

wget -qO - https://www.mongodb.org/static/pgp/server-4.4.asc | sudo apt-key add -

sudo apt-get update

sudo apt-get install mongodb-org=4.4.8 mongodb-org-server=4.4.8 mongodb-org-shell=4.4.8 mongodb-org-mongos=4.4.8 mongodb-org-tools=4.4.8