I just upgraded my ubuntu from 18 to 22.04 and i got a problem when installing mongodb on my local.
sudo apt install libssl1.1
In this step we will download the .deb file. You can download the file here.
Once download was successful then open the terminal and go to the directory then run command:
sudo dpkg -i mongodb-org-server_6.0.0_amd64.deb
To verify your MongoDB, you can run command to check the status:
sudo systemctl status mongod
To run the MongoDB service, you can run command:
sudo systemctl start mongod
To set the auto-start to your system, you can run command:
sudo systemctl enable mongod