26

Possible Duplicate:
How do I fix a “Problem with MergeList” error when trying to do an update?

I always have been a Windows guy but with my recent interesting and degree (Microbiology) of bioinformatics I am finding a need for the command line and higher computational power.

I am making the full conversion to Ubuntu 12.04 LTS and honestly just need help setting it up for my/it's first time. I lack the command line knowledge to navigate some problems.

First off I keep getting a handful of errors withing sudo apt-get update

Reading package lists... Error!
W: GPG error: http://us.archive.ubuntu.com precise Release: The following signatures were invalid: BADSIG 40976EAF437D05B5 Ubuntu Archive Automatic Signing Key <ftpmaster@ubuntu.com>

W: GPG error: htt://security.ubuntu.com precise-security Release: The following signatures were invalid: BADSIG 40976EAF437D05B5 Ubuntu Archive Automatic Signing Key <ftpmaster@ubuntu.com>

W: GPG error: htt://extras.ubuntu.com precise Release: The following signatures were invalid: BADSIG 16126D3A3E5C1192 Ubuntu Extras Archive Automatic Signing Key <ftpmaster@ubuntu.com>

W: GPG error: htt://us.archive.ubuntu.com precise-updates Release: The following signatures were invalid: BADSIG 40976EAF437D05B5 Ubuntu Archive Automatic Signing Key <ftpmaster@ubuntu.com>

W: GPG error: htt://us.archive.ubuntu.com precise-backports Release: The following signatures were invalid: BADSIG 40976EAF437D05B5 Ubuntu Archive Automatic Signing Key <ftpmaster@ubuntu.com>

E: Encountered a section with no Package: header
E: Problem with MergeList /var/lib/apt/lists/us.archive.ubuntu.com_ubuntu_dists_precise_restricted_binary-amd64_Packages
E: The package lists or status file could not be parsed or opened.

Secondly, I have various random problems with the new OS. I click on the "Ubuntu Software Center" and it opens then crashes without a error box :

"Ubuntu has encountered an internal error"

that can't show details

jon_shep
  • 361
  • P.S. you can find my e-mail if you go through my profile carefuly. I'm a bioinformatician myself. Regarding your second problem: note that you should only post one question. Read the FAQ and use google. – January Oct 09 '12 at 22:35

1 Answers1

51

Your BADSIG Problem is an easy one. Your signatures are incorrect. Update them with:

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 40976EAF437D05B5

Please do that with every wrong key by just changing the last key number and keeping the rest.

Rebuild your software cache:

cd /var/lib/apt
sudo mv lists lists.old
sudo mkdir -p lists/partial
sudo apt-get update

Maybe that will fix your Software Center Problem as well.

PS: But if you ask here - many nice people will surely help you here and you will learn a lot! But please keep on giving as much error output as possible.

David Foerster
  • 36,264
  • 56
  • 94
  • 147
Peterling
  • 1,159
  • Q: How do I find these "keys" is there a command to look them up for the problem programs? – jon_shep Oct 09 '12 at 22:49
  • If you mean how does the command find the keys it passes the number to keyserver.ubuntu.com and that keyserver returns the public key you need to securely verify the package information you are downloading from the archive. If you man how do you yourself find the number 40976EAF437D05B--it was mentioned in the error messages you posted (scrolling right). – John S Gruber Oct 09 '12 at 23:43
  • 1
    That should have been 40976EAF437D05B5 in my last comment. Once you get this fixed I suggest that you reinstall the package ubuntu-keyring. That package should have installed that key when you installed your system. – John S Gruber Oct 10 '12 at 00:20
  • Actually THIS is THE solution when there is an error like W: GPG error: http://de.archive.ubuntu.com trusty-backports Release: The following signatures were invalid: BADSIG 40976EAF437D05B5 Ubuntu Archive Automatic Signing Key <ftpmaster@ubuntu.com>. You also have to rebuild the software cache! – metadings Sep 03 '14 at 23:00
  • Finally I changed in System Settings > Software & Updates to download from Main Server, now it works again... – metadings Sep 03 '14 at 23:44
  • why does this even happen? – Eaten by a Grue Nov 28 '15 at 02:52
  • @billynoah, TCP only provides a 32-bit CRC to protect downloads. A packet corrupted by random chance has roughly a one in four billion chance of being accepted, which is surprisingly high given how many computers handle how much data every second. It's not surprising to download a corrupted apt list from time to time. Or, given how easy it is for data stored on disks to bitrot, old downloaded lists to fail to validate. – sarnold Sep 07 '17 at 03:28