can';t在ubuntu 16.10上安装mongodb

can';t在ubuntu 16.10上安装mongodb,mongodb,ubuntu,Mongodb,Ubuntu,我正试图通过以下方式安装mongodb(我使用的是ubuntu 16.10)。我以前成功安装过mongodb,但我遇到了一个错误,所以我卸载了mongodb 当我再次尝试安装它时,在我的终端上输入sudo apt get install-y mongodb org时,出现了这个错误: Reading package lists... Done Building dependency tree Reading state information... Done The followi

我正试图通过以下方式安装mongodb(我使用的是ubuntu 16.10)。我以前成功安装过mongodb,但我遇到了一个错误,所以我卸载了mongodb

当我再次尝试安装它时,在我的终端上输入
sudo apt get install-y mongodb org
时,出现了这个错误:

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

您可以通过以下方式安装:

sudo apt-get install -y --allow-unauthenticated mongodb-org
但是请注意,它不会对您安装的包进行身份验证

请记住,Ubuntu 16.10不是受支持的平台之一:

有关在Ubuntu上安装Mongo的建议,请参阅本教程:


如果您使用当前使用的相同方法(描述相同)安装了MongoDB一次,您的问题可能是由于:

  • 程序包键已更改,您需要更新它;尝试:

    sudo apt-key update
    sudo apt-get update
    
  • 然后重新安装

  • 您现在使用的是代理,下载软件包或密钥时apt get无法正常工作

  • 希望有帮助!:)

    您可能想在AskUbuntu上询问: