Error while installing mongodb on ubuntu 16.04

前端 未结 9 2979
小鲜肉
小鲜肉 2021-02-20 15:22

I\'ve already seen these answers, so please don\'t link em in solutions:

Installing MongoDB on Ubuntu 16.04 https://unix.stackexchange.com/questions/220

相关标签:
9条回答
  • 2021-02-20 15:57

    Worked after installing libcurl3

    sudo apt install libcurl3

    0 讨论(0)
  • 2021-02-20 15:57

    I also had the similar issue and it got resolved for me by doing this Go to this directory /etc/apt/sources.list.d/ and check if there are anyother mongodb-org-*.list files as it would cause conflicts.

    then try to install it again, if again issue arises, then run

    sudo apt purge mongod* sudo apt purge mongodb* sudo apt purge mongodb-org*

    to remove any inconsistency and then go to https://docs.mongodb.com/manual/tutorial/install-mongodb-on-ubuntu/ and follow the procedure.

    If you're some kind of Ubuntu Derivatives like Linux Mint, Ubuntu GNOME etc, make sure which Ubuntu version is running on your ubuntu derivative version on wiki before pasting the required commands. As in my case I'm using Linux Mint 17 -> Ubuntu 14.04 and I was installing with Ubuntu 16.04 that made the conflict

    Hope this would resolve the issue.

    0 讨论(0)
  • 2021-02-20 15:59
     sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 0C49F3730359A14518585931BC711F9BA15703C6
    
    echo "deb [ arch=amd64,arm64 ] http://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.4 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.4.list
    
    sudo apt-get update
    sudo apt-get install -y mongodb-org
    sudo service mongod start
    mongo
    
    0 讨论(0)
提交回复
热议问题