Error gpg: no valid OpenPGP data found

I try to run wget https://get.docker.com/gpg | sudo apt-key add - then error no valid OpenPGP data found showed. Please help me fix it.
Im using ubuntu 14.04 64bit.

Thanks you !

May be the problem is generated by this bug https://bugs.launchpad.net/ubuntu/+source/wget/+bug/994097

Just for the record:

Same here:
curl -fsSL https://yum.dockerproject.org/gpg | sudo apt-key add -
gave

gpg: no valid OpenPGP data found.

Done it seprately with wget with success:
wget https://yum.dockerproject.org/gpg
sudo apt-key add gpg

OK

1 Like

Thank you !
this worked :slight_smile:

Thanks a lot @ajnouri. It worked like a charm!