Unable to install MongoDB 3.2 on Ubuntu 16 (AWS EC2 ) due to authentication

148 views
Skip to first unread message

VINOD VIJAY KUMAR NAIR

unread,
Nov 3, 2016, 10:34:58 AM11/3/16
to mongodb-user
Hi,

I'm trying to install MongoDB3.2 version on Ubuntu 16 running on AWS EC2 instance. Through CLI on my Ubuntu machine, I have issued following command as per the instructions given to install MongoDB 3.2 on Ubuntu:-

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

2) echo "deb http://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.2 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.2.list

3) sudo apt-get update

4) sudo apt-get install -y mongodb-org=3.2.10 mongodb-org-server=3.2.10 mongodb-org-shell=3.2.10 mongodb-org-mongos=3.2.10 mongodb-org-tools=3.2.10

However, Im getting following authentication error:-
Reading package lists... Done
Building dependency tree
Reading state information... Done
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 0 not upgraded.
Need to get 51.5 MB of archives.
After this operation, 213 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

Why packages are not able to authenticate? Please advise.

Thank you

Wan Bachtiar

unread,
Nov 3, 2016, 8:39:57 PM11/3/16
to mongodb-user

Why packages are not able to authenticate? .

Hi Vinod,

I’ve just tested the steps for MongoDB 3.2 installation on Ubuntu 16.04 on AWS EC2 instance, and the packages are authenticated just fine.

Make sure you do an apt-get update after adding the sources.list.

Failing that, try running apt-get clean before apt-get update. I suspect that there is a stale sources.list file on your instance.

Regards,

Wan.

Reply all
Reply to author
Forward
0 new messages