Kamil Bienias
Kamil Bienias

Reputation: 71

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

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.

Upvotes: 6

Views: 19789

Answers (3)

Samuel Mercy
Samuel Mercy

Reputation: 1

I got an error like this same issue. I was also getting the gpg: no valid OpenPGP data found. error. So I changed the URL a bit because I discovered it wasn't pointing to the exact gpg file.

curl -fsSL https://download.docker.com/linux/ubuntu | sudo apt-key add -

to this

curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -

and I got 'OK' as output.

Upvotes: 0

user3540556
user3540556

Reputation: 91

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.

Upvotes: 9

user13696501
user13696501

Reputation:

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

Upvotes: 0

Related Questions