vagrant@ubuntu18-bionic:/etc/apt/sources.list.d$ uname -a Linux ubuntu18-bionic 4.15.0-112-generic #113-Ubuntu SMP Thu Jul 9 23:41:39 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux vagrant@ubuntu18-bionic:~$ sudo apt purge mongodb-enterprise* Reading package lists... Done Building dependency tree Reading state information... Done Note, selecting 'mongodb-enterprise-mongos' for glob 'mongodb-enterprise*' Note, selecting 'mongodb-enterprise-unstable-shell' for glob 'mongodb-enterprise*' Note, selecting 'mongodb-enterprise-tools' for glob 'mongodb-enterprise*' Note, selecting 'mongodb-enterprise' for glob 'mongodb-enterprise*' Note, selecting 'mongodb-enterprise-shell' for glob 'mongodb-enterprise*' Note, selecting 'mongodb-enterprise-unstable-server' for glob 'mongodb-enterprise*' Note, selecting 'mongodb-enterprise-unstable' for glob 'mongodb-enterprise*' Note, selecting 'mongodb-enterprise-unstable-mongos' for glob 'mongodb-enterprise*' Note, selecting 'mongodb-enterprise-server' for glob 'mongodb-enterprise*' Note, selecting 'mongodb-enterprise-unstable-tools' for glob 'mongodb-enterprise*' Package 'mongodb-enterprise' is not installed, so not removed Package 'mongodb-enterprise-mongos' is not installed, so not removed Package 'mongodb-enterprise-shell' is not installed, so not removed Package 'mongodb-enterprise-tools' is not installed, so not removed Package 'mongodb-enterprise-unstable' is not installed, so not removed Package 'mongodb-enterprise-unstable-mongos' is not installed, so not removed Package 'mongodb-enterprise-unstable-server' is not installed, so not removed Package 'mongodb-enterprise-unstable-shell' is not installed, so not removed Package 'mongodb-enterprise-unstable-tools' is not installed, so not removed The following packages will be REMOVED: mongodb-enterprise-server* 0 upgraded, 0 newly installed, 1 to remove and 61 not upgraded. After this operation, 0 B of additional disk space will be used. Do you want to continue? [Y/n] y (Reading database ... 155094 files and directories currently installed.) Purging configuration files for mongodb-enterprise-server (4.4.0) ... vagrant@ubuntu18-bionic:/etc/apt/sources.list.d$ wget -qO - https://www.mongodb.org/static/pgp/server-3.6.asc | sudo apt-key add - OK vagrant@ubuntu18-bionic:/etc/apt/sources.list.d$ echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu bionic/mongodb-org/3.6 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.6.list deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu bionic/mongodb-org/3.6 multiverse vagrant@ubuntu18-bionic:/etc/apt/sources.list.d$ sudo apt-get update Get:1 http://security.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB] Ign:2 https://repo.mongodb.org/apt/ubuntu bionic/mongodb-org/3.6 InRelease Hit:3 http://archive.ubuntu.com/ubuntu bionic InRelease Get:4 https://repo.mongodb.org/apt/ubuntu bionic/mongodb-org/3.6 Release [2123 B] Get:5 http://archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB] Get:6 https://repo.mongodb.org/apt/ubuntu bionic/mongodb-org/3.6 Release.gpg [801 B] Get:7 https://repo.mongodb.org/apt/ubuntu bionic/mongodb-org/3.6/multiverse amd64 Packages [2107 B] Get:8 http://archive.ubuntu.com/ubuntu bionic-backports InRelease [74.6 kB] Get:9 http://security.ubuntu.com/ubuntu bionic-security/main amd64 Packages [849 kB] Get:10 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages [1072 kB] Get:11 http://security.ubuntu.com/ubuntu bionic-security/main Translation-en [264 kB] Get:12 http://security.ubuntu.com/ubuntu bionic-security amd64 Contents (deb) [93.1 MB] Get:13 http://archive.ubuntu.com/ubuntu bionic-updates/main Translation-en [356 kB] Get:14 http://archive.ubuntu.com/ubuntu bionic-updates amd64 Contents (deb) [102 MB] Get:15 http://security.ubuntu.com/ubuntu bionic-security/restricted amd64 Packages [87.3 kB] Get:16 http://security.ubuntu.com/ubuntu bionic-security/restricted Translation-en [18.8 kB] Get:17 http://security.ubuntu.com/ubuntu bionic-security/universe amd64 Packages [701 kB] Get:18 http://security.ubuntu.com/ubuntu bionic-security/universe Translation-en [232 kB] Get:19 http://security.ubuntu.com/ubuntu bionic-security/multiverse amd64 Packages [8512 B] Get:20 http://security.ubuntu.com/ubuntu bionic-security/multiverse Translation-en [2908 B] Get:21 http://archive.ubuntu.com/ubuntu bionic-updates/restricted amd64 Packages [96.4 kB] Get:22 http://archive.ubuntu.com/ubuntu bionic-updates/restricted Translation-en [20.9 kB] Get:23 http://archive.ubuntu.com/ubuntu bionic-updates/universe amd64 Packages [1107 kB] Get:24 http://archive.ubuntu.com/ubuntu bionic-updates/universe Translation-en [344 kB] Get:25 http://archive.ubuntu.com/ubuntu bionic-updates/multiverse amd64 Packages [19.6 kB] Get:26 http://archive.ubuntu.com/ubuntu bionic-updates/multiverse Translation-en [6768 B] Fetched 201 MB in 41s (4939 kB/s) Reading package lists... Done vagrant@ubuntu18-bionic:/etc/apt/sources.list.d$ sudo apt-get install -y mongodb-org Reading package lists... Done Building dependency tree Reading state information... Done The following additional packages will be installed: mongodb-org-mongos mongodb-org-server mongodb-org-shell mongodb-org-tools The following NEW packages will be installed: mongodb-org mongodb-org-mongos mongodb-org-server mongodb-org-shell mongodb-org-tools 0 upgraded, 5 newly installed, 0 to remove and 99 not upgraded. Need to get 85.2 MB of archives. After this operation, 298 MB of additional disk space will be used. Get:1 https://repo.mongodb.org/apt/ubuntu bionic/mongodb-org/3.6/multiverse amd64 mongodb-org-shell amd64 3.6.20 [8974 kB] Get:2 https://repo.mongodb.org/apt/ubuntu bionic/mongodb-org/3.6/multiverse amd64 mongodb-org-server amd64 3.6.20 [15.3 MB] Get:3 https://repo.mongodb.org/apt/ubuntu bionic/mongodb-org/3.6/multiverse amd64 mongodb-org-mongos amd64 3.6.20 [8620 kB] Get:4 https://repo.mongodb.org/apt/ubuntu bionic/mongodb-org/3.6/multiverse amd64 mongodb-org-tools amd64 3.6.20 [52.3 MB] Get:5 https://repo.mongodb.org/apt/ubuntu bionic/mongodb-org/3.6/multiverse amd64 mongodb-org amd64 3.6.20 [3520 B] Fetched 85.2 MB in 2s (36.5 MB/s) Selecting previously unselected package mongodb-org-shell. (Reading database ... 155094 files and directories currently installed.) Preparing to unpack .../mongodb-org-shell_3.6.20_amd64.deb ... Unpacking mongodb-org-shell (3.6.20) ... Selecting previously unselected package mongodb-org-server. Preparing to unpack .../mongodb-org-server_3.6.20_amd64.deb ... Unpacking mongodb-org-server (3.6.20) ... Selecting previously unselected package mongodb-org-mongos. Preparing to unpack .../mongodb-org-mongos_3.6.20_amd64.deb ... Unpacking mongodb-org-mongos (3.6.20) ... Selecting previously unselected package mongodb-org-tools. Preparing to unpack .../mongodb-org-tools_3.6.20_amd64.deb ... Unpacking mongodb-org-tools (3.6.20) ... Selecting previously unselected package mongodb-org. Preparing to unpack .../mongodb-org_3.6.20_amd64.deb ... Unpacking mongodb-org (3.6.20) ... Setting up mongodb-org-shell (3.6.20) ... Setting up mongodb-org-mongos (3.6.20) ... Setting up mongodb-org-tools (3.6.20) ... Setting up mongodb-org-server (3.6.20) ... Setting up mongodb-org (3.6.20) ... Processing triggers for man-db (2.8.3-2ubuntu0.1) ... vagrant@ubuntu18-bionic:/etc/apt/sources.list.d$ ps --no-headers -o comm 1 systemd vagrant@ubuntu18-bionic:/etc/apt/sources.list.d$ sudo systemctl start mongod Failed to start mongod.service: Unit mongod.service not found. vagrant@ubuntu18-bionic:/etc/apt/sources.list.d$ sudo systemctl daemon-reload vagrant@ubuntu18-bionic:/etc/apt/sources.list.d$ sudo systemctl start mongod vagrant@ubuntu18-bionic:/etc/apt/sources.list.d$