Elasticsearch Installation: gpg: no valid OpenPGP

In this thread, a user solved the problem by running the command separately. Perhaps try that?