Sunday, September 17, 2017

ubuntu pgp key errors

ubuntu pgp key errors


Q: I get error like
GPG error: http://archive.ubuntu.com oneiric Release: The following signatures were invalid: BADSIG 40976EAF437D05B5 Ubuntu Archive Automatic Signing Key <ftpmaster@ubuntu.com>
A:
try the following
sudo apt-key del 40976EAF437D05B5
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 40976EAF437D05B5

Then run apt-get update again. If you still get the errors, you need to remove the old files manually.


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

download file now