WARNING: The following packages cannot be authenticated

I am using Ubuntu 16.04 and trying to install Elasticsearch 5.3 with this instruction: https://www.elastic.co/guide/en/elasticsearch/reference/current/deb.html

After I apt-key and put file at /etc/apt/sources.list.d, I tried to install elasticsearch. However, I am getting this warning:

root@john:~# apt-get install elasticsearch
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
elasticsearch
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 33.6 MB of archives.
After this operation, 37.5 MB of additional disk space will be used.
WARNING: The following packages cannot be authenticated!
elasticsearch
Install these packages without verification? [y/N]

I thought that the "apt-key" command should have install the public key. Did I do anything wrong? Thanks!

Hey,

I just spawned a fresh ubuntu 1604 vagrant image, ran the exact commands listed on our docs page and was able to install just fine. Can you retry to make sure this is not a temporary fluke?

Can you also paste the output of lsb_release -a to check if there is a version difference? This was the output of mine

Distributor ID:	Ubuntu
Description:	Ubuntu 16.04.2 LTS
Release:	16.04
Codename:	xenial

--Alex

Thanks for the reply. My lsb_release says:

root@john:~# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 16.04.2 LTS
Release: 16.04
Codename: xenial

Pretty much the same as yours.

I've already installed elasticsearch regardless the warning. I will retry if I create another Ubuntu VM.

I created another Ubuntu VM, and it's all working without warnings now. Thank you!

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.