Unable to install mongodb properly on ubuntu 18.04 LTS

前端 未结 14 1298
盖世英雄少女心
盖世英雄少女心 2021-02-03 23:26

I am trying to install mongodb on my Ubuntu 18.04 LTS, but it has the following error saying

You might want to run \'apt --fix-broken install\' to correct

14条回答
  •  盖世英雄少女心
    2021-02-04 00:03

    Based on this excellent Answer: https://stackoverflow.com/a/51421152/659354

    And this Page: https://docs.mongodb.com/manual/tutorial/install-mongodb-on-ubuntu/

    The commands I used to install MongoDB 4.2

    sudo apt-get purge mongo* - Note: mongo to remove the client as well as the server.

    sudo apt-get install mongodb-org - Note: install command run after the Mongodb.org Source was added to the Apt-get sources list.

提交回复
热议问题