How to Fix apt-get update GPG error BADSIG on Ubuntu or Debian

In this tutorial, we will show you how to Fix apt-get update GPG error BADSIG on Ubuntu or Debian. Today I encountered another apt-get update GPG error, this time I got the error message BADSIG :

GPG error: http://au.archive.ubuntu.com precise Release: The following signatures were invalid: BADSIG 40976EAF437D05B5 Ubuntu Archive Automatic Signing Key <[email protected]>

Fix apt-get update GPG error BADSIG on Ubuntu or Debian

After a few research, I found the solution from askubuntu and StackExchange. Please use the following commands to get rid of your problem:

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

Please do that with the corresponding error key from your error message log.

The next step is to clear your apt software cache:

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

Then you are done and may try our favorite apt-get command:

apt-get update

And you should encounter no error anymore.

For you who didn’t know yet about apt-get update, it’s a Linux command specifically for Ubuntu and Debian to update apt or software repository cache. apt-get the command itself is a powerful command-line tool to perform such function as installation of new software packages, upgrade of existing software packages, updating of the package list index, and even upgrading the entire Ubuntu/Debian system.

Thanks for using this tutorial for Fix apt-get update GPG error BADSIG on Ubuntu or Debian. For additional help or useful information, we recommend you to check the official Ubuntu website.

VPS Manage Service Offer
If you don’t have time to do all of this stuff, or if this is not your area of expertise, we offer a service to do “VPS Manage Service Offer”, starting from $10 (Paypal payment). Please contact us to get the best deal!