The following signatures were invalid: BADSIG 40976EAF437D05B5

I would get this error whenever I would run ‘sudo aptitude update’ or ‘sudo apt-get update’:

W: GPG error: http://mirror.anl.gov oneiric Release: The following signatures were invalid: BADSIG 40976EAF437D05B5 Ubuntu Archive Automatic Signing Key <ftpmaster@ubuntu.com>

I was able to resolve this issue for this GPG public key in particular by doing the following:

sudo apt-get clean
sudo mv /var/lib/apt/lists /tmp
sudo mkdir /var/lib/apt/lists
sudo apt-get update

7 thoughts on “The following signatures were invalid: BADSIG 40976EAF437D05B5”

  1. Thank you very much for this fix I would say also FINALLY!!! it is the only answer I have found to this error.

  2. You just went from “random internet okay” to “most amazing person in my life”.
    THANK YOU. You are truly a ubuntu god.

Leave a Reply

Your email address will not be published. Required fields are marked *