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.
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.
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.
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