Unable to install mongodb properly on ubuntu 18.04 LTS

前端 未结 14 1299
盖世英雄少女心
盖世英雄少女心 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:01

    You need to first uninstall the mongodb, you can use:

    sudo apt-get purge mongodb-org*
    

    After this, install mongodb through the following commands:

    sudo apt-get install mongodb
    

    And then update:

    sudo apt-get update
    

    You are done with the installation of mongodb. You can check it by using the below command:

    mongo --version
    

提交回复
热议问题