0

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.

1 Answers1

0

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
  • You can also look at that directory with your graphical file explorer. Sounds like it is just empty. Have a look at the link I put in my above comment. That may have some more information for you, though not exactly the same problem, it may be close enough to get you up and running. – Dan Priest Mar 14 '16 at 18:59
  • I think you may be able to get rid of any 'hiccups' in the system by grabbing a file with wget. Try wget -O /dev/null http://speedtest.wdc01.softlayer.com/downloads/test10.zip to just download something through your system. – Dan Priest Mar 14 '16 at 19:19
  • Ok, it downloaded I will restart my computer and check – ML_2898 Mar 14 '16 at 19:31
  • Ok so I still get the same error... – ML_2898 Mar 14 '16 at 19:36
  • Have you looked through the link that I sent, and tried anything from there? A lot of great suggestions, and many seem to have worked for others. – Dan Priest Mar 14 '16 at 19:58
  • Yes, none of them seem to work. I saw that post before and I didn't get much help... – ML_2898 Mar 14 '16 at 20:21
  • Have you tried all of the maintenance actions within Software Sources, as well as disabling any 'Additional Repositories'? – Dan Priest Mar 14 '16 at 20:24
  • No, how would I do that? – ML_2898 Mar 14 '16 at 20:27
  • From the menu, select Administration > Software Sources. Within the Maintenance area, run all options, from top to bottom. Then, within the Additional Repositories section, deselect (don't remove) all options. – Dan Priest Mar 14 '16 at 20:33
  • Can't find admin or Software Sources – ML_2898 Mar 14 '16 at 20:47
  • Ok I selected all and deselected additional repositories. Now what should I do? – ML_2898 Mar 14 '16 at 21:10
  • Can try again with an update. – Dan Priest Mar 14 '16 at 21:11
  • I think it worked but I am not sure sudo apt-get update && sudo apt-get upgrade Reading package lists... Done Reading package lists... Done Building dependency tree Reading state information... Done Calculating upgrade... Done 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. – ML_2898 Mar 14 '16 at 21:19
  • You can add back repositories now, and remove any you have issues with. – Dan Priest Mar 14 '16 at 21:37
  • so now I am getting this...`W: GPG error: http://ppa.launchpad.net trusty InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY FC14671BA89CA06C W: Failed to fetch http://dl.google.com/linux/chrome/deb/dists/stable/Release Unable to find expected entry 'main/binary-i386/Packages' in Release file (Wrong sources.list entry or malformed file)

    E: Some index files failed to download. They have been ignored, or old ones used instead.`

    – ML_2898 Mar 15 '16 at 18:14
  • I followed it and got this...`W: Failed to fetch http://dl.google.com/linux/chrome/deb/dists/stable/Release Unable to find expected entry 'main/binary-i386/Packages' in Release file (Wrong sources.list entry or malformed file)

    E: Some index files failed to download. They have been ignored, or old ones used instead.`

    – ML_2898 Mar 16 '16 at 17:56
  • You will just have to remove that one from ppas. Most likely due to Chrome not being offered for linux in 32 bit versions any longer. See here – Dan Priest Mar 17 '16 at 04:12