installation of mongodb server and compass : https://www.mongodb.com/docs/mongodb-shell/install/
wget -qO- https://www.mongodb.org/static/pgp/server-7.0.asc | sudo tee /etc/apt/trusted.gpg.d/server-7.0.asc
If you receive an error indicating that gnupg is not installed, perform the following steps:
sudo apt install gnupg
wget -qO- https://www.mongodb.org/static/pgp/server-7.0.asc | sudo tee /etc/apt/trusted.gpg.d/server-7.0.asc
echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu jammy/mongodb-org/7.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-7.0.list
sudo apt update
sudo apt install mongodb-compass mongodb-org-server
sudo systemctl start mongod
sudo systemctl status mongod
sudo systemctl enable mongod