Comments on How to Install and Configure MongoDB on Ubuntu 18.04 LTS
MongoDB is a NoSQL database that offers a high performance, high availability, and automatic scaling enterprise database. Data is stored in a "document" structure in JSON format (in MongoDB called BSON). MongoDB was first introduced in 2009 and is currently developed by the company MongoDB Inc. This tutorial shows the installation and configuration of MongoDB on Ubuntu 18.04 LTS.
20 Comment(s)
Comments
Excellent guide, very easy!, thank you!
How can I install version 3.2.19 on Ubuntu 18?
I can't install the enterprise edition in Ubuntu 18.04 because of a conflict between libcurl3 and libcurl4:
sudo apt-get install mongodb-enterprise-server
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
mongodb-enterprise-server : Depends: libcurl3 (>= 7.16.2) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
Seems it is a problem affecting several 3rd party applications.
Maybe you can fix it when you make the bionic repository?
Thanks
Workaround is to replace libcurl4 with libcurl3, so
sudo apt-get install -y libcurl3
that should get functional version then
sudo apt-get install -y xxxx
where xxxx is all other depends that arise, that should install them correctly
then once no more unmet dependencies go back and run your mongodb-org
sudo apt-get install -y mongodb-org
or whichever one you used before that gave the initial error
Thanks, but... wouldn't that "break" all other programs that depend on libcurl4?
Reading package lists... Done Building dependency tree Reading state information... Done libcurl4 is already the newest version (7.58.0-2ubuntu3.3). libcurl4 set to manually installed. You might want to run 'apt --fix-broken install' to correct these. The following packages have unmet dependencies: mongodb-org-server : Depends: libcurl3 (>= 7.16.2) but it is not going to be installed E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
This is what i find every now and then.. help!
Superb tutorial... made my work so easy..!!!
It's work for me,thank you!
I have used this like 10 times to set up mongo. Great info and concise!
Exellent tutorial keep it please
thnks you, excellent guide about configure a root user on mongodb. was very helpfull
Nice article,thank you ...
after this my node.js server running on port 80 is not accessible anymore!
tcp 0 0 127.0.0.1:80 0.0.0.0:* LISTEN 5511/node
Also restarted the server.. run on tcp6 and back.. not accessible anymore - why and how to solve this?
Excellent guide, thank you!
dude this is the best tutorial, for folks with filtered websites, just connect to a proxy VPN and try to inistall again.
Thanks a lot! great guide. Keep it up!
# network interfacesnet: port: 27017 bindIp: 127.0.0.1,192,183.82.119.115# service mongod restart
#root@ip-172-31-27-110:~# sudo service mongod status? mongod.service - MongoDB Database Server Loaded: loaded (/lib/systemd/system/mongod.service; enabled; vendor preset: e Active: failed (Result: exit-code) since Thu 2019-11-14 05:37:36 UTC; 12s ago Docs: https://docs.mongodb.org/manual Process: 3018 ExecStart=/usr/bin/mongod --config /etc/mongod.conf (code=exited Main PID: 3018 (code=exited, status=48)Nov 14 05:37:35 ip-172-31-27-110 systemd[1]: Started MongoDB Database Server.Nov 14 05:37:36 ip-172-31-27-110 systemd[1]: mongod.service: Main process exitedNov 14 05:37:36 ip-172-31-27-110 systemd[1]: mongod.service: Failed with resultroot@ip-172-31-27-110:~# vi /etc/mongod.conf
I have followed the steps but still getting this error msg, i have uninstalled and reisntalled many times but it seems like the below error still persist.
Any thougts ?
Error Log
mongodb.service - High-performance, schema-free document-oriented >database
Loaded: loaded (/etc/systemd/system/mongodb.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Mon 2019-11-25 17:34:09 IST; 6s ago
Process: 16617 ExecStart=/usr/bin/mongod --quiet --config /etc/mongod.conf (code=exited, status=2)
Main PID: 16617 (code=exited, status=2)
Nov 25 17:34:09 shubham-HP-Laptop-15g-br0xx systemd[1]: Started High-performa…e.
Nov 25 17:34:09 shubham-HP-Laptop-15g-br0xx mongod[16617]: Error reading conf…ry
Nov 25 17:34:09 shubham-HP-Laptop-15g-br0xx mongod[16617]: try '/usr/bin/mong…on
Nov 25 17:34:09 shubham-HP-Laptop-15g-br0xx systemd[1]: mongodb.service: Main…NT
Nov 25 17:34:09 shubham-HP-Laptop-15g-br0xx systemd[1]: mongodb.service: Fail…'.
Hint: Some lines were ellipsized, use -l to show in full.
Nope, did not work.
Followed all the steps as listed, but it failed when trying to install using this command.....
sudo apt-get install mongodb-org
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
mongodb-org : Depends: mongodb-org-shell but it is not going to be installed
Depends: mongodb-org-server but it is not going to be installed
Depends: mongodb-org-mongos but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
Thanks !!!!
Very good