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
|