gpg: no valid OpenPGP data found. When installing Cassandra on Docker on Linux Lite

11,894

I also got the same issue. Actually this URL return 404 when executed so I tried this URL in browser https://www.apache.org/dist/cassandra/KEYS and it is redirected to this URL https://downloads.apache.org/cassandra/KEYS.

So, I changed the URL in the command

curl https://www.apache.org/dist/cassandra/KEYS | sudo apt-key add -

to this

curl https://downloads.apache.org/cassandra/KEYS | sudo apt-key add -

and it worked.

Share:
11,894

Related videos on Youtube

Kamil Bienias
Author by

Kamil Bienias

Updated on June 04, 2022

Comments

  • Kamil Bienias
    Kamil Bienias almost 2 years

    When installing Cassandra on Docker on Linux Lite after entering:

    curl https://www.apache.org/dist/cassandra/KEYS | sudo apt-key add -

    then I get:

    gpg: no valid OpenPGP data found.

  • Kamil Bienias
    Kamil Bienias almost 4 years
    Thanks, but unfortunately it doesn't work for me. I know it depends on the version of python installed. I have version 2.7.17. If I had 2.5.15 or earlier I wouldn't have a problem turning on cqlsh
  • Suresh Kumar
    Suresh Kumar over 2 years
    Worked for me. Thanks !