# WARNING: The following packages cannot be authenticated

**URL:** <https://discuss.elastic.co/t/warning-the-following-packages-cannot-be-authenticated/81737>\
**Category:** Elasticsearch\
**Created:** [April 10, 2017, 2:52am UTC](https://discuss.elastic.co/t/warning-the-following-packages-cannot-be-authenticated/81737 "2017-04-10T02:52:33Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![johnlinp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/johnlinp/32/13902_2.png) [@johnlinp](https://discuss.elastic.co/u/johnlinp)\
**Post date:** [April 10, 2017, 2:52am UTC](https://discuss.elastic.co/t/warning-the-following-packages-cannot-be-authenticated/81737/1 "2017-04-10T02:52:33Z")

</div>

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](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!

---

<div class="post-metadata">

**Author:** ![spinscale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spinscale/32/25011_2.png) [@spinscale](https://discuss.elastic.co/u/spinscale)\
**Post date:** [April 10, 2017, 10:11am UTC](https://discuss.elastic.co/t/warning-the-following-packages-cannot-be-authenticated/81737/2 "2017-04-10T10:11:06Z")

</div>

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

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

```

--Alex

---

<div class="post-metadata">

**Author:** ![johnlinp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/johnlinp/32/13902_2.png) [@johnlinp](https://discuss.elastic.co/u/johnlinp)\
**Post date:** [April 12, 2017, 10:08am UTC](https://discuss.elastic.co/t/warning-the-following-packages-cannot-be-authenticated/81737/3 "2017-04-12T10:08:41Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![johnlinp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/johnlinp/32/13902_2.png) [@johnlinp](https://discuss.elastic.co/u/johnlinp)\
**Post date:** [April 13, 2017, 6:58am UTC](https://discuss.elastic.co/t/warning-the-following-packages-cannot-be-authenticated/81737/4 "2017-04-13T06:58:12Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [May 11, 2017, 7:04am UTC](https://discuss.elastic.co/t/warning-the-following-packages-cannot-be-authenticated/81737/5 "2017-05-11T07:04:50Z")

</div>

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