I tried to download Spotify for Linux a few days ago and I made a small error and it caused a message which kept me from downloading Spotify. After 2 hours I realized the mistake and I was to download Spotify, but now I can't update anything at all on my computer, and I'm scared because I might have messed with a file and deleted it or ruined it.

Now I have no idea what to do. What should I do? By the way, I'm not a computer person.

This is what it says when I try and update using sudo apt-get update on Ubuntu 14.04:

E: GPG error: http://apt2.pennmanor.net trusty InRelease: Clearsigned file isn't valid, got 'NODATA' (does the network require authentication?)

And it is not a network proxy problem because I forgot the network and readded it and it still didn't work.


Borrowed from this issue: GPG error - NO_PUBKEY

Try the following to remove all PPA keyrings.

sudo rm /etc/apt/trusted.gpg.d/*

Not exactly the same, but I believe it will resolve your issue.

  • This is what I got: rm: cannot remove ‘/etc/apt/trusted.gpg.d/’: Is a directory – ML_2898 Mar 14 '16 at 18:36
  • Note the * after the final /. It means remove everything in that directory, not the directory itself. You may also want to have a look at this if the previous doesn't work. – Dan Priest Mar 14 '16 at 18:37
  • I don't know how to do that. How do I remove everything in the directory? – ML_2898 Mar 14 '16 at 18:41
  • That was the command I posted in my answer. sudo will give you the super user privileges and rm is the command for remove. Then you have the pathname, and the asterisk(*) at the end, means everything found within the /trusted.gpg.d/ directory. – Dan Priest Mar 14 '16 at 18:45
  • I put that and I got: rm: cannot remove ‘/etc/apt/trusted.gpg.d/* : No such file or directory Sorry I am very inexperienced with laptops so could you explain a little more what the pathname is? – ML_2898 Mar 14 '16 at 18:51

Your Answer

By clicking "Post Your Answer", you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.