DEV Community πŸ‘©β€πŸ’»πŸ‘¨β€πŸ’»

Cover image for Fixing libssl1.1 and Installing MongoDb on Ubuntu 22.04.1 LTS
Ahmad Hidayatullah
Ahmad Hidayatullah

Posted on

Fixing libssl1.1 and Installing MongoDb on Ubuntu 22.04.1 LTS

Image description

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

Image description

2. Installing libssl1.1

sudo apt install libssl1.1

Image description

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

Image description

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

Image description

Reference:
link

Top comments (2)

Collapse
 
erikmuir profile image
Erik Muir

This works great! I was fighting with this for quite a while so I'm glad I finally came across this post.

Create an Account!

πŸ‘€ Just want to lurk?

That's fine, you can still create an account and turn on features like 🌚 dark mode.