![]() |
ubuntu.com - launchpad.net - ubuntu help
|
|
|||||||
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 |
|
|
#1 |
|
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 |
|
|
|
|
|
#3 |
|
Ubuntu Member
![]() ![]() |
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 - 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.. |
|
|
|
|
|
#4 |
|
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> |
|
|
|
|
|
#5 |
|
First Cup of Ubuntu
![]() |
Re: apt-update signature invalid
gpg --keyserver hkp://subkeys.pgp.net --recv-keys 40976EAF437D05B5
gpg --export --armor 40976EAF437D05B5 | sudo apt-key add - |
|
|
|
|
|
#6 |
|
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. |
|
|
|
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|