I Get "gpg: no valid OpenPGP data found" error while importing google key

20,078

The problem was due to the restriction in my country. As @remyseroos suggested me, I tried to open the URL (https://dl-ssl.google.com/linux/linux_signing_key.pub) in my browser and I found out it's not loading properly.

So I just used a proxy and problem solved!

Share:
20,078

Related videos on Youtube

Omid
Author by

Omid

Contact me on facebook or visit my website and WebAdvice

Updated on September 18, 2022

Comments

  • Omid
    Omid over 1 year

    Everything was working but suddenly stopped. I just didn't upgrade my Ubuntu 14.04 for two months. Now when I want to upgrade I get some errors.

    First I run sudo apt-get update:

    E: GPG error: http://dl.google.com stable InRelease: Clearsigned file isn't valid, got 'NODATA' (does the network require authentication?)
    

    I search for a solution and found this, but now when I try to import the key, I get another error. While importing the key:

    wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
    

    I get this error:

    gpg: no valid OpenPGP data found.
    

    How to solve this problem?

    • radriaanse
      radriaanse over 9 years
      What's your GnuPG version? check with gpg --version
    • Omid
      Omid over 9 years
      @remyseroos gpg (GnuPG) 1.4.16
    • radriaanse
      radriaanse over 9 years
      Can you see the key if you just go to the url from your browser?
    • Omid
      Omid over 9 years
      @remyseroos Oh, No! I can't see it. Thank you man. Solved!
    • radriaanse
      radriaanse over 9 years
      np, Can you please write out your solution/finding as an answer, and mark it solved?
  • Afshar Mohebi
    Afshar Mohebi over 9 years
    My problem too. Which proxy you used?
  • Omid
    Omid almost 9 years
    @afsharm Any VPN service should work.