ubuntu 16.04 安装mongodb失败

安装的时候提示:

The repository ‘http://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.0 Release’ does not have a Release file.

解决办法:

先清掉原来的源

sudo rm /etc/apt/sources.list.d/mongodb*.list

再重新添加

sudo apt-key adv –keyserver hkp://keyserver.ubuntu.com:80 –recv EA312927

sudo bash -c ‘echo “deb http://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.2 multiverse” > /etc/apt/sources.list.d/mongodb-org-3.2.list’

sudo apt update

sudo apt install mongodb-org

    原文作者:东风夜放花
    原文地址: https://www.jianshu.com/p/24e5f2dbd431
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞