[SERVER-41104] Installing Mongodb 4.0 on Ubuntu 18.04 bionic Created: 12/May/19  Updated: 13/May/19  Resolved: 13/May/19

Status: Closed
Project: Core Server
Component/s: Build
Affects Version/s: 4.0.9
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Priyank Kumar Sharma Assignee: Danny Hatcher (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Operating System: ALL
Steps To Reproduce:

Commands and output for installing MongoDB:

hduser@ubuntu:~$ codename=bionic
hduser@ubuntu:~$ mongodb=4.0
hduser@ubuntu:~$ wget -qO- https://www.mongodb.org/static/pgp/server-${mongodb}.asc | sudo apt-key add
hduser@ubuntu:~$ sudo bash -c "echo deb http://repo.mongodb.org/apt/ubuntu ${codename}/mongodb-org/$mongodb multiverse > /etc/apt/sources.list.d/mongodb-org.list"
hduser@ubuntu:~$ sudo apt update
Ign:1 https://repo.mongodb.org/apt/ubuntu bionic/mongodb-org/4.0 InRelease                                                                                      
Hit:2 http://ppa.launchpad.net/certbot/certbot/ubuntu bionic InRelease                                                                                          
Hit:3 https://repo.mongodb.org/apt/ubuntu bionic/mongodb-org/4.0 Release                                             
Hit:4 http://sfo1.mirrors.digitalocean.com/mariadb/repo/10.3/ubuntu bionic InRelease                                 
Get:5 http://security.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB]                    
Hit:6 http://in.archive.ubuntu.com/ubuntu bionic InRelease                           
Get:8 http://in.archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]         
Get:9 http://in.archive.ubuntu.com/ubuntu bionic-backports InRelease [74.6 kB]                  
Fetched 252 kB in 3s (82.9 kB/s)                                                            
Reading package lists... Done
Building dependency tree       
Reading state information... Done
108 packages can be upgraded. Run 'apt list --upgradable' to see them.
W: Target Packages (multiverse/binary-all/Packages) is configured multiple times in /etc/apt/sources.list.d/mongodb-org-4.0.list:1 and /etc/apt/sources.list.d/mongodb-org.list:1
W: Target Translations (multiverse/i18n/Translation-en_IN) is configured multiple times in /etc/apt/sources.list.d/mongodb-org-4.0.list:1 and /etc/apt/sources.list.d/mongodb-org.list:1
W: Target Translations (multiverse/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list.d/mongodb-org-4.0.list:1 and /etc/apt/sources.list.d/mongodb-org.list:1
W: Target DEP-11 (multiverse/dep11/Components-i386.yml) is configured multiple times in /etc/apt/sources.list.d/mongodb-org-4.0.list:1 and /etc/apt/sources.list.d/mongodb-org.list:1
W: Target DEP-11 (multiverse/dep11/Components-all.yml) is configured multiple times in /etc/apt/sources.list.d/mongodb-org-4.0.list:1 and /etc/apt/sources.list.d/mongodb-org.list:1
W: Target DEP-11-icons-small (multiverse/dep11/icons-48x48.tar) is configured multiple times in /etc/apt/sources.list.d/mongodb-org-4.0.list:1 and /etc/apt/sources.list.d/mongodb-org.list:1
W: Target DEP-11-icons (multiverse/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list.d/mongodb-org-4.0.list:1 and /etc/apt/sources.list.d/mongodb-org.list:1
W: Target CNF (multiverse/cnf/Commands-i386) is configured multiple times in /etc/apt/sources.list.d/mongodb-org-4.0.list:1 and /etc/apt/sources.list.d/mongodb-org.list:1
W: Target CNF (multiverse/cnf/Commands-all) is configured multiple times in /etc/apt/sources.list.d/mongodb-org-4.0.list:1 and /etc/apt/sources.list.d/mongodb-org.list:1
W: Target Packages (multiverse/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list.d/mongodb-org-4.0.list:1 and /etc/apt/sources.list.d/mongodb.list:1
W: Target Packages (multiverse/binary-all/Packages) is configured multiple times in /etc/apt/sources.list.d/mongodb-org-4.0.list:1 and /etc/apt/sources.list.d/mongodb.list:1
W: Target Translations (multiverse/i18n/Translation-en_IN) is configured multiple times in /etc/apt/sources.list.d/mongodb-org-4.0.list:1 and /etc/apt/sources.list.d/mongodb.list:1
W: Target Translations (multiverse/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list.d/mongodb-org-4.0.list:1 and /etc/apt/sources.list.d/mongodb.list:1
W: Target DEP-11 (multiverse/dep11/Components-i386.yml) is configured multiple times in /etc/apt/sources.list.d/mongodb-org-4.0.list:1 and /etc/apt/sources.list.d/mongodb.list:1
W: Target DEP-11 (multiverse/dep11/Components-all.yml) is configured multiple times in /etc/apt/sources.list.d/mongodb-org-4.0.list:1 and /etc/apt/sources.list.d/mongodb.list:1
W: Target DEP-11-icons-small (multiverse/dep11/icons-48x48.tar) is configured multiple times in /etc/apt/sources.list.d/mongodb-org-4.0.list:1 and /etc/apt/sources.list.d/mongodb.list:1
W: Target DEP-11-icons (multiverse/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list.d/mongodb-org-4.0.list:1 and /etc/apt/sources.list.d/mongodb.list:1
W: Target CNF (multiverse/cnf/Commands-i386) is configured multiple times in /etc/apt/sources.list.d/mongodb-org-4.0.list:1 and /etc/apt/sources.list.d/mongodb.list:1
W: Target CNF (multiverse/cnf/Commands-all) is configured multiple times in /etc/apt/sources.list.d/mongodb-org-4.0.list:1 and /etc/apt/sources.list.d/mongodb.list:1
W: Target Packages (multiverse/binary-all/Packages) is configured multiple times in /etc/apt/sources.list.d/mongodb-org-4.0.list:1 and /etc/apt/sources.list.d/mongodb-org.list:1
W: Target Translations (multiverse/i18n/Translation-en_IN) is configured multiple times in /etc/apt/sources.list.d/mongodb-org-4.0.list:1 and /etc/apt/sources.list.d/mongodb-org.list:1
W: Target Translations (multiverse/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list.d/mongodb-org-4.0.list:1 and /etc/apt/sources.list.d/mongodb-org.list:1
W: Target DEP-11 (multiverse/dep11/Components-i386.yml) is configured multiple times in /etc/apt/sources.list.d/mongodb-org-4.0.list:1 and /etc/apt/sources.list.d/mongodb-org.list:1
W: Target DEP-11 (multiverse/dep11/Components-all.yml) is configured multiple times in /etc/apt/sources.list.d/mongodb-org-4.0.list:1 and /etc/apt/sources.list.d/mongodb-org.list:1
W: Target DEP-11-icons-small (multiverse/dep11/icons-48x48.tar) is configured multiple times in /etc/apt/sources.list.d/mongodb-org-4.0.list:1 and /etc/apt/sources.list.d/mongodb-org.list:1
W: Target DEP-11-icons (multiverse/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list.d/mongodb-org-4.0.list:1 and /etc/apt/sources.list.d/mongodb-org.list:1
W: Target CNF (multiverse/cnf/Commands-i386) is configured multiple times in /etc/apt/sources.list.d/mongodb-org-4.0.list:1 and /etc/apt/sources.list.d/mongodb-org.list:1
W: Target CNF (multiverse/cnf/Commands-all) is configured multiple times in /etc/apt/sources.list.d/mongodb-org-4.0.list:1 and /etc/apt/sources.list.d/mongodb-org.list:1
W: Target Packages (multiverse/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list.d/mongodb-org-4.0.list:1 and /etc/apt/sources.list.d/mongodb.list:1
W: Target Packages (multiverse/binary-all/Packages) is configured multiple times in /etc/apt/sources.list.d/mongodb-org-4.0.list:1 and /etc/apt/sources.list.d/mongodb.list:1
W: Target Translations (multiverse/i18n/Translation-en_IN) is configured multiple times in /etc/apt/sources.list.d/mongodb-org-4.0.list:1 and /etc/apt/sources.list.d/mongodb.list:1
W: Target Translations (multiverse/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list.d/mongodb-org-4.0.list:1 and /etc/apt/sources.list.d/mongodb.list:1
W: Target DEP-11 (multiverse/dep11/Components-i386.yml) is configured multiple times in /etc/apt/sources.list.d/mongodb-org-4.0.list:1 and /etc/apt/sources.list.d/mongodb.list:1
W: Target DEP-11 (multiverse/dep11/Components-all.yml) is configured multiple times in /etc/apt/sources.list.d/mongodb-org-4.0.list:1 and /etc/apt/sources.list.d/mongodb.list:1
W: Target DEP-11-icons-small (multiverse/dep11/icons-48x48.tar) is configured multiple times in /etc/apt/sources.list.d/mongodb-org-4.0.list:1 and /etc/apt/sources.list.d/mongodb.list:1
W: Target DEP-11-icons (multiverse/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list.d/mongodb-org-4.0.list:1 and /etc/apt/sources.list.d/mongodb.list:1
W: Target CNF (multiverse/cnf/Commands-i386) is configured multiple times in /etc/apt/sources.list.d/mongodb-org-4.0.list:1 and /etc/apt/sources.list.d/mongodb.list:1
W: Target CNF (multiverse/cnf/Commands-all) is configured multiple times in /etc/apt/sources.list.d/mongodb-org-4.0.list:1 and /etc/apt/sources.list.d/mongodb.list:1
hduser@ubuntu:~$ sudo apt-get install -y mongodb-org
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package mongodb-org

Participants:

 Description   

Hi team,

I am installing Mongodb 4.0 on Ubuntu 18.04 bionic, with below commands but getting error:

 



 Comments   
Comment by Danny Hatcher (Inactive) [ 13/May/19 ]

Hello,

I was able to install MongoDB on a generic Ubuntu 18.04 box by copy/pasting the exact commands you used. If you keep having issues, you may wish to install using a tarball. I also encourage you to reach out to our community by posting on the mongodb-user group or on Stack Overflow with the mongodb tag.

Generated at Thu Feb 08 04:56:50 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.