I've received this error more than once, so I'm finally writing my notes how I solve it.
This really is just your standard don't-have-the-gpg-keys error. So, get'em -- take the last eight digits from the long NO_PUBKEY string that is displayed on your computer. If you are using Debian 4.0, the above key is likely correct; if you are using Ubuntu or another version of Debian, it will be wrong. (The last eight digits are used as an identifier at the keyservers). Then:
gpg --keyserver subkeys.pgp.net --recv-keys 6070D3A1 gpg --export 6070D3A1 | apt-key add -
Repeat if necessary. All done, just do an apt-get update and no more warning!
Are you using Ubuntu or Debian? What you need to do is take the last eight characters of the warning message you get, because the key you tried is for Debian's repository.
You are likely getting the refused message because the keyserver was down, so try again when you read this.
Thank you for pointing out the ambiguity in my above paragraph, I've corrected it.
This entry is from my tutorial section and was written on May 25, 2007. It's been tagged with Tips, Tricks and Hacks. There have been 2 comments so far.
iam stuck in terminal with this below and I got stuck, look below.
cfrivas@cfrivas-desktop:~$ gpg keyserver subkeys.pgp.net--recv-keys 6070D3A1
gpg: directory `/home/cfrivas/.gnupg' created
gpg: can't open `/gnupg/options.skel': No such file or directory
gpg: keyring `/home/cfrivas/.gnupg/secring.gpg' created
gpg: keyring `/home/cfrivas/.gnupg/pubring.gpg' created
usage: gpg [options] [filename]
cfrivas@cfrivas-desktop:~$ gpg export 6070D3A1
I could not remember the typing sequence, then I retried then this, below came up instead.
cfrivas@cfrivas-desktop:~$ gpg --keyserver subkeys.pgp.net --recv-keys 6070D3A1
gpg: requesting key 6070D3A1 from hkp server subkeys.pgp.net
?: localhost: Connection refused
gpgkeys: HTTP fetch error 7: couldn't connect: Connection refused
gpg: no valid OpenPGP data found.
gpg: Total number processed: 0
cfrivas@cfrivas-desktop:~$ gpg --export 6070D3A1 | apt-key add -
gpg: WARNING: nothing exported
gpg: no valid OpenPGP data found.
WHAT NOW?