Install MongoDB on Ubuntu 17.04

15,695

Solution 1

Mongo only provides packages for LTS versions, so there won't be a package for 17.04 ever.

That being said, you can try following the instructions for 16.04, as described here, specifically:

echo "deb [ arch=amd64,arm64 ] http://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.6 multiverse" |
sudo tee /etc/apt/sources.list.d/mongodb-org-3.6.list

and then update your apt cache and install mongo:

sudo apt update
sudo apt install mongodb-org

For more info see the official installation instructions.

Solution 2

Only sudo apt install mongodb commond is enough for the installation of Mongo DB. Once installation is completed execute Mongo commond, it will start mongo server. Default location for Data will be var/lib/mongodb

Share:
15,695

Related videos on Youtube

Rahul Tyagi
Author by

Rahul Tyagi

Updated on September 18, 2022

Comments

  • Rahul Tyagi
    Rahul Tyagi over 1 year

    How can I install MongoDB on my Ubuntu 17.04??

    Looks like there are no packages provided by Mongo at the moment, just wondering if someone has already managed to install an instance on 17.04?

  • Caleb McKay
    Caleb McKay over 6 years
    On 17.10 this installs Mongo 3.4. To get 3.6 on 17.10 do this: medium.com/gatemill/…
  • Admin
    Admin over 6 years
    To get 3.6 on 17.10 do this: medium.com/gatemill/…