Ubuntu Forums ubuntu.com - launchpad.net - ubuntu help  

Go Back   Ubuntu Forums > The Ubuntu Forum Community > Forum Archive > Main Support Categories > General Help
Register Reset Password Forum Help Forum Council Search Today's Posts Mark Forums Read

Hello, Unregistered You are browsing a READ only archive of the main support categories pre 4/21/2008. You will not be able to post or reply any threads in this section.
Ubuntu 9.10 is out!!!

When downloading Ubuntu 9.10 please consider using bittorrent to get your copy of Ubuntu.

The Ubuntu Developers Summit for Lucid Lynx will be held the week of 16-Nov-2009 till 20-Nov-2009 in Dallas, TX USA. Visit the the Ubuntu wiki for more information about UDS and how to participate remotely.

General Help
All your general support questions for Ubuntu, Kubuntu, Edubuntu and Xubuntu.

 
Thread Tools Display Modes
Old October 23rd, 2007   #1
thhjimmy
5 Cups of Ubuntu
 
Join Date: Sep 2007
Beans: 16
apt-update signature invalid

HI,
any idea what should I do if apt-get update have this error?




W: GPG error: http://se.archive.ubuntu.com gutsy-updates Release: The following signatures were invalid: BADSIG 40976EAF437D05B5 Ubuntu Archive Automatic Signing Key <ftpmaster@ubuntu.com>
W: GPG error: http://se.archive.ubuntu.com gutsy-security Release: The following signatures were invalid: BADSIG 40976EAF437D05B5 Ubuntu Archive Automatic Signing Key <ftpmaster@ubuntu.com>
W: Duplicate sources.list entry cdrom://Ubuntu 7.10 _Gutsy Gibbon_ - Release i386 (20071016.1) gutsy/main Packages (/var/lib/apt/lists/Ubuntu%207.10%20%5fGutsy%20Gibbon%5f%20-%20Release%20i386%20(20071016.1)_dists_gutsy_main_ binary-i386_Packages)
W: Duplicate sources.list entry cdrom://Ubuntu 7.10 _Gutsy Gibbon_ - Release i386 (20071016.1) gutsy/restricted Packages (/var/lib/apt/lists/Ubuntu%207.10%20%5fGutsy%20Gibbon%5f%20-%20Release%20i386%20(20071016.1)_dists_gutsy_restr icted_binary-i386_Packages)
W: You may want to run apt-get update to correct these problems
thhjimmy is offline   Reply With Quote
Old October 27th, 2007   #2
Tickle Me Elmo
Spilled the Beans
 
Join Date: Apr 2007
Beans: 13
Re: apt-update signature invalid

Hi, I found this while googling - which might help you [link]
Tickle Me Elmo is offline   Reply With Quote
Old March 5th, 2008   #3
komputes
Ubuntu Member
 
komputes's Avatar
 
Join Date: Jun 2006
Location: Canada
Beans: 454
Send a message via Yahoo to komputes Send a message via Skype™ to komputes
Re: apt-update signature invalid

This doesn't happen very often, but when it does you should run these two commands to get the valid GPG keys which apt-get uses to validate that the package you are downloading, or server you are communicating with is authentic.

Code:
GPGKEY= <place the GPG key from /etc/apt/sources.list here>
gpg --keyserver hkp://subkeys.pgp.net --recv-keys $GPGKEY
gpg --export --armor $GPGKEY | sudo apt-key add -
You need to replace $GPGKEY with the key in the error message or sources.list (not all sources.list have this).

These keys can also be seen by going to System > Administration > Synaptic Packet Manager > Settings Menu > Repositories > Authentication

You can try clicking on Restore Defaults if you never had this problem before.

For more information on PGP look here:
https://help.ubuntu.com/community/GnuPrivacyGuardHowto
__________________
[They will regret imposing] analog rules on digital content. For the freedom of man. I am he is you are he is you are me and we are all together MarkShuttleworth,JFK,Beatles

Last edited by komputes; March 5th, 2008 at 04:07 PM..
komputes is offline   Reply With Quote
Old April 4th, 2008   #4
shaggy999
Ubuntu Extra Shot
 
Join Date: Jun 2007
Beans: 332
Re: apt-update signature invalid

I have this same problem that popped up today and the fix suggested does not work. When I run teh first command on the gpgkey it says the key was never changed.

Here's the error message when I apt-get update

W: GPG error: http://us.archive.ubuntu.com gutsy-updates Release: The following signatures were invalid: BADSIG 40976EAF437D05B5 Ubuntu Archive Automatic Signing Key <ftpmaster@ubuntu.com>
shaggy999 is offline   Reply With Quote
Old April 15th, 2008   #5
babecek
First Cup of Ubuntu
 
Join Date: Apr 2008
Beans: 1
Send a message via Yahoo to babecek
Re: apt-update signature invalid

gpg --keyserver hkp://subkeys.pgp.net --recv-keys 40976EAF437D05B5
gpg --export --armor 40976EAF437D05B5 | sudo apt-key add -
babecek is offline   Reply With Quote
Old April 29th, 2008   #6
vnevoa
5 Cups of Ubuntu
 
Join Date: Sep 2005
Location: Portugal
Beans: 19
Ubuntu 8.10 Intrepid Ibex
Re: apt-update signature invalid

Hi.
I stumbled upon this error too, after installing Hardy fresh in a Mac G3.
The Mac was connected to the Internet via a defective Ethernet cable, and lost most of the IP packets, but some got through with corrupted data.
As a result, my "apt-get updates" corrupted the apt system, and this thread's error started happening. Only after that I noticed the cable problem.

I did all that is described in this thread, as well as many others, and even some other stuff I desperately invented.
In the end, what solved the problem was:
1 - remove the offending repository from the "sources.list";
2 - do "apt-get update";
3 - insert the offending repository back into the "sources.list";
4 - do "apt-get update" again; it should be working now.

Other stuff I did before:
- sudo apt-get --reinstall install apt; # had the cd-rom in the sources.list;
- sudo apt-key remove 437D05B5; # to remove the offending key;
- sudo apt-key update; # to reinstall the offending key;

But as I said, it was only after tricking apt-get's cache system that things started working again.

Hope this helps someone.
vnevoa is offline   Reply With Quote

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 03:49 AM.


vBulletin ©2000 - 2009, Jelsoft Enterprises Ltd. Ubuntu Logo, Ubuntu and Canonical © Canonical Ltd. Tango Icons © Tango Desktop Project. bilberry