Mongo Enterprise Install Issue: Ubuntu 19.04

Having trouble at Chapter 2: The MongoDB Query Language + Atlas, Installing the mongo Shell (OSX / Linux). I am using Ubuntu 19.04 and I think that there may be some conflicts. In running the suggested installation commands, I get so far as to installing mongodb-enterprise and you can see the result below:

$ sudo apt-get install -y mongodb-enterprise
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 : Depends: mongodb-enterprise-server but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

Since the latest version would not operate properly, I then tried an older version:

$ sudo apt-get install -y mongodb-enterprise=4.0.9 mongodb-enterprise-server=4.0.9 mongodb-enterprise-shell=4.0.9 mongodb-enterprise-mongos=4.0.9 mongodb-enterprise-tools=4.0.9
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: libsensors4 (>= 1:3.0.0) but it is not installable
E: Unable to correct problems, you have held broken packages.

I have also tried to install libsensors4, install libsensors-config, removed an old version of mongodb (I had installed the personal addition before the class) and other commands trying to clean this up. However, nothing seems to work. I am running Ubuntu 19.04, so maybe that is the issue? I know the class suggests to download from the MongoDB sources, but maybe I should be trying somewhere else? Any ideas?

**Edit: **
I am able to load mongodb without the enterprise. But I don’t think that this is what we need for the class. See below:

$ sudo apt install -y mongodb
Reading package lists… Done
Building dependency tree
Reading state information… Done
The following additional packages will be installed:
libboost-filesystem1.67.0 libboost-iostreams1.67.0
libboost-program-options1.67.0 libgoogle-perftools4 libtcmalloc-minimal4
libyaml-cpp0.6 mongo-tools mongodb-clients mongodb-server
mongodb-server-core
The following NEW packages will be installed:
libboost-filesystem1.67.0 libboost-iostreams1.67.0
libboost-program-options1.67.0 libgoogle-perftools4 libtcmalloc-minimal4
libyaml-cpp0.6 mongo-tools mongodb mongodb-clients mongodb-server
mongodb-server-core
0 upgraded, 11 newly installed, 0 to remove and 19 not upgraded.
Need to get 55.2 MB of archives.
After this operation, 226 MB of additional disk space will be used.
Get:1 http://us.archive.ubuntu.com/ubuntu disco/main amd64 libboost-filesystem1.67.0 amd64 1.67.0-13 [235 kB]
Get:2 http://us.archive.ubuntu.com/ubuntu disco/main amd64 libboost-iostreams1.67.0 amd64 1.67.0-13 [224 kB]
Get:3 http://us.archive.ubuntu.com/ubuntu disco/main amd64 libboost-program-options1.67.0 amd64 1.67.0-13 [330 kB]
Get:4 http://us.archive.ubuntu.com/ubuntu disco/main amd64 libtcmalloc-minimal4 amd64 2.5-2.2ubuntu3 [91.6 kB]
Get:5 http://us.archive.ubuntu.com/ubuntu disco/main amd64 libgoogle-perftools4 amd64 2.5-2.2ubuntu3 [190 kB]
Get:6 http://us.archive.ubuntu.com/ubuntu disco/main amd64 libyaml-cpp0.6 amd64 0.6.2-4fakesync1 [145 kB]
Get:7 http://us.archive.ubuntu.com/ubuntu disco/universe amd64 mongo-tools amd64 3.6.3-0ubuntu1 [12.3 MB]
Get:8 http://us.archive.ubuntu.com/ubuntu disco/universe amd64 mongodb-clients amd64 1:3.6.9+really3.6.8+90~g8e540c0b6d-0ubuntu2 [20.8 MB]
Get:9 http://us.archive.ubuntu.com/ubuntu disco/universe amd64 mongodb-server-core amd64 1:3.6.9+really3.6.8+90~g8e540c0b6d-0ubuntu2 [20.9 MB]
Get:10 http://us.archive.ubuntu.com/ubuntu disco/universe amd64 mongodb-server all 1:3.6.9+really3.6.8+90~g8e540c0b6d-0ubuntu2 [12.6 kB]
Get:11 http://us.archive.ubuntu.com/ubuntu disco/universe amd64 mongodb amd64 1:3.6.9+really3.6.8+90~g8e540c0b6d-0ubuntu2 [9,784 B]
Fetched 55.2 MB in 3s (20.8 MB/s)
Selecting previously unselected package libboost-filesystem1.67.0:amd64.
(Reading database … 178327 files and directories currently installed.)
Preparing to unpack …/00-libboost-filesystem1.67.0_1.67.0-13_amd64.deb …
Unpacking libboost-filesystem1.67.0:amd64 (1.67.0-13) …
Selecting previously unselected package libboost-iostreams1.67.0:amd64.
Preparing to unpack …/01-libboost-iostreams1.67.0_1.67.0-13_amd64.deb …
Unpacking libboost-iostreams1.67.0:amd64 (1.67.0-13) …
Selecting previously unselected package libboost-program-options1.67.0:amd64.
Preparing to unpack …/02-libboost-program-options1.67.0_1.67.0-13_amd64.deb …
Unpacking libboost-program-options1.67.0:amd64 (1.67.0-13) …
Selecting previously unselected package libtcmalloc-minimal4.
Preparing to unpack …/03-libtcmalloc-minimal4_2.5-2.2ubuntu3_amd64.deb …
Unpacking libtcmalloc-minimal4 (2.5-2.2ubuntu3) …
Selecting previously unselected package libgoogle-perftools4.
Preparing to unpack …/04-libgoogle-perftools4_2.5-2.2ubuntu3_amd64.deb …
Unpacking libgoogle-perftools4 (2.5-2.2ubuntu3) …
Selecting previously unselected package libyaml-cpp0.6:amd64.
Preparing to unpack …/05-libyaml-cpp0.6_0.6.2-4fakesync1_amd64.deb …
Unpacking libyaml-cpp0.6:amd64 (0.6.2-4fakesync1) …
Selecting previously unselected package mongo-tools.
Preparing to unpack …/06-mongo-tools_3.6.3-0ubuntu1_amd64.deb …
Unpacking mongo-tools (3.6.3-0ubuntu1) …
Selecting previously unselected package mongodb-clients.
Preparing to unpack …/07-mongodb-clients_1%3a3.6.9+really3.6.8+90~g8e540c0b6d-0ubuntu2_amd64.deb …
Unpacking mongodb-clients (1:3.6.9+really3.6.8+90~g8e540c0b6d-0ubuntu2) …
Selecting previously unselected package mongodb-server-core.
Preparing to unpack …/08-mongodb-server-core_1%3a3.6.9+really3.6.8+90~g8e540c0b6d-0ubuntu2_amd64.deb …
Unpacking mongodb-server-core (1:3.6.9+really3.6.8+90~g8e540c0b6d-0ubuntu2) …
Selecting previously unselected package mongodb-server.
Preparing to unpack …/09-mongodb-server_1%3a3.6.9+really3.6.8+90~g8e540c0b6d-0ubuntu2_all.deb …
Unpacking mongodb-server (1:3.6.9+really3.6.8+90~g8e540c0b6d-0ubuntu2) …
Selecting previously unselected package mongodb.
Preparing to unpack …/10-mongodb_1%3a3.6.9+really3.6.8+90~g8e540c0b6d-0ubuntu2_amd64.deb …
Unpacking mongodb (1:3.6.9+really3.6.8+90~g8e540c0b6d-0ubuntu2) …
Setting up libboost-program-options1.67.0:amd64 (1.67.0-13) …
Setting up libtcmalloc-minimal4 (2.5-2.2ubuntu3) …
Setting up libyaml-cpp0.6:amd64 (0.6.2-4fakesync1) …
Setting up libboost-iostreams1.67.0:amd64 (1.67.0-13) …
Setting up libboost-filesystem1.67.0:amd64 (1.67.0-13) …
Setting up mongo-tools (3.6.3-0ubuntu1) …
Setting up libgoogle-perftools4 (2.5-2.2ubuntu3) …
Setting up mongodb-clients (1:3.6.9+really3.6.8+90~g8e540c0b6d-0ubuntu2) …
Setting up mongodb-server-core (1:3.6.9+really3.6.8+90~g8e540c0b6d-0ubuntu2) …
Setting up mongodb-server (1:3.6.9+really3.6.8+90~g8e540c0b6d-0ubuntu2) …
Setting up mongodb (1:3.6.9+really3.6.8+90~g8e540c0b6d-0ubuntu2) …
Processing triggers for man-db (2.8.5-2) …
Processing triggers for libc-bin (2.29-0ubuntu2) …
Processing triggers for systemd (240-6ubuntu5) …

1 Like

Same problem can anyone help?
:pray::pray:

Hi @Sean_64404 and @Piyush_56319,

Please refer this post where I have already answered the question. However, if the issue still persists please feel free to get back to us.

Thanks,
Shubham Ranjan
Curriculum Support Engineer