无法在Ubuntu 16.10上安装mongodb [英] can't install mongodb on ubuntu 16.10
问题描述
我正在尝试通过遵循以下手册(我使用的是ubuntu 16.10),我之前已经成功安装了mongodb,但出现错误,因此我卸载了mongodb.
I'm trying to install mongodb by following this manual (i'm using ubuntu 16.10) I've successfully installed mongodb before but I got an error so i uninstalled mongodb.
当我尝试再次安装它时,在终端上输入sudo apt-get install -y mongodb-org
时出现此错误:
When I try to install it again i got this error when i enter sudo apt-get install -y mongodb-org
on my terminal:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
mongodb-org-mongos mongodb-org-server mongodb-org-shell mongodb-org-tools
The following NEW packages will be installed:
mongodb-org mongodb-org-mongos mongodb-org-server mongodb-org-shell
mongodb-org-tools
0 upgraded, 5 newly installed, 0 to remove and 255 not upgraded.
Need to get 66,7 MB of archives.
After this operation, 269 MB of additional disk space will be used.
WARNING: The following packages cannot be authenticated!
mongodb-org-shell mongodb-org-server mongodb-org-mongos mongodb-org-tools
mongodb-org
E: There were unauthenticated packages and -y was used without --allow-unauthenticated
推荐答案
您可以通过以下方式安装它:
You can instal it with:
sudo apt-get install -y --allow-unauthenticated mongodb-org
但是请注意,它不会对您安装的软件包进行身份验证.
but note that it wouldn't authenticate the package that you install.
请记住,Ubuntu 16.10并不是受支持的平台之一:
Keep in mind that Ubuntu 16.10 is not one the supported platforms:
有关在Ubuntu上推荐安装Mongo的信息,请参阅本教程:
See this tutorial for a recommended installation of Mongo on Ubuntu:
这篇关于无法在Ubuntu 16.10上安装mongodb的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!