I just upgraded my ubuntu from 18 to 22.04 and i got a problem when installing mongodb on my local.
Table Of Contents
1. Adding focal-security to sources list
echo "deb http://security.ubuntu.com/ubuntu focal-security main" | sudo tee /etc/apt/sources.list.d/focal-security.list
deb http://security.ubuntu.com/ubuntu focal-security main
2. Installing libssl1.1
sudo apt install libssl1.1
3. Download and configure mongoDb
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
Reference:
link
Top comments (4)
This works great! I was fighting with this for quite a while so I'm glad I finally came across this post.
Good job !
thank you, you saved me
my pleasure bro