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

你可能感兴趣的:(ubuntu 16.04 安装mongodb失败)