11 December 2009

How to fix the Ubuntu GPG Error BADSIG

Occasionally I have run into a problem in Ubuntu where I run apt-get update and receive the following error:
W: GPG error: http://archive.canonical.com intrepid Release: The following signatures were invalid: BADSIG 40976EAF437D05B5 Ubuntu Archive Automatic Signing Key
This can be corrected by the following commands:

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

18 comments:

  1. thanks a bunch this has really helped me out with keeping everything up to date

    ReplyDelete
  2. Very easy. Thank you very much.

    ReplyDelete
  3. this was exectly what i was looking for, big thanks

    ReplyDelete
  4. well, just another thanks :D

    ReplyDelete
  5. yes, thank you!

    ReplyDelete
  6. Not Working!!!My error is W: GPG error: http://ppa.launchpad.net jaunty Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY D739676F7613768D

    ReplyDelete
  7. Thank you very much

    ReplyDelete
  8. GPG error: http://archive.ubuntu.com lucid-updates Release: The following signatures were invalid: BADSIG 40976EAF437D05B5 Ubuntu Archive Automatic Signing Key Failed to fetch http://security.ubuntu.com/ubuntu/dists/lucid-security/universe/binary-i386/Packages.bz2 Sub-process /bin/bzip2 returned an error code (2)
    Some index files failed to download, they have been ignored, or old ones used instead.


    This is my error...
    Any help on this ???

    ReplyDelete
  9. worked a treat for me, thanks heaps

    ReplyDelete
  10. Thank you
    Works like a charm.

    ReplyDelete
  11. this fixed it. btw i'm on lucid lynx. thanks very much!

    ReplyDelete
  12. worked a treat here too, cheers.

    ReplyDelete
  13. thanx a lot sir... u really saved me....

    ReplyDelete
  14. Great thing! That helped... but, can you please explain why this happens and why the lists should be regenerated? Thanks in advance!

    ReplyDelete