# Gpg: no valid OpenPGP data found

**URL:** <https://discuss.elastic.co/t/gpg-no-valid-openpgp-data-found/290633>\
**Category:** Elasticsearch\
**Created:** [December 1, 2021, 7:23am UTC](https://discuss.elastic.co/t/gpg-no-valid-openpgp-data-found/290633 "2021-12-01T07:23:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ethical20](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ethical20/32/68123_2.png) [@ethical20](https://discuss.elastic.co/u/ethical20)\
**Post date:** [December 1, 2021, 7:23am UTC](https://discuss.elastic.co/t/gpg-no-valid-openpgp-data-found/290633/1 "2021-12-01T07:23:00Z")

</div>

Hi,

I already have an ELK environment running at version 7.13, I'm trying to update to 7.15. But when trying to use the below command:

```auto
wget -qO - https://artifacts.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add -

```

I get this error:

```auto
gpg: no valid OpenPGP data found.

```

Also if I skipped to the second command as this is not a new setup:

```auto
sudo apt-get install apt-transport-https

```

I get this error:

```auto
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be upgraded:
  apt-transport-https
1 upgraded, 0 newly installed, 0 to remove and 136 not upgraded.
Need to get 4680 B of archives.
After this operation, 1024 B of additional disk space will be used.
Err:1 http://lb.archive.ubuntu.com/ubuntu focal-updates/universe amd64 apt-transport-https all 2.0.6
  Temporary failure resolving 'lb.archive.ubuntu.com'
E: Failed to fetch http://lb.archive.ubuntu.com/ubuntu/pool/universe/a/apt/apt-transport-https_2.0.6_all.deb Temporary failure resolving 'lb.archive.ubuntu.com'
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

```

What I tried to resolve this, but failed:

1- successfully pinged `lb.archive.ubuntu.com` from another machine on the network (so it is not an ISP issue.

2- Changed/ Added DNS from 1.1.1.1 to 8.8.8.8, 1.1.1.1

3- tried to use each command seperatly:  
first `wget -qO - https://artifacts.elastic.co/GPG-KEY-elasticsearch`  
then `sudo apt-key add -`

Still no luck, any help is really appreciated.

PS: I've upgraded before from 7.10 to 7.13 with same commands successfully with no errors!

_ **Update:** _  
I've removed the -q from the command to see wats happening an got this:

```auto
 wget -O - https://artifacts.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add -
--2021-12-01 10:22:31-- https://artifacts.elastic.co/GPG-KEY-elasticsearch
Resolving artifacts.elastic.co (artifacts.elastic.co)... failed: Temporary failure in name resolution.
wget: unable to resolve host address ‘artifacts.elastic.co’
gpg: no valid OpenPGP data found.

```

Regards,

---

<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:** [December 29, 2021, 7:23am UTC](https://discuss.elastic.co/t/gpg-no-valid-openpgp-data-found/290633/2 "2021-12-29T07:23:02Z")

</div>

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