2
votes

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.

2

2 Answers

0
votes

I got this error in an Docker container. I believe the cause was that the container was missing CA certs.

apt-get update

apt-get install ca-certificates

0
votes

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.