Today I resumed my Linux laptop, after trying hard to use OSX for work...

Got this when updating the packages, after some weeks of abandon:

W: GPG error: http://archive.ubuntu.com jaunty Release: The following signatures were invalid: BADSIG 40976EAF437D05B5 Ubuntu Archive Automatic Signing Key 
W: A error occurred during the signature verification. The repository is not updated and the previous index files will be used.GPG error: http://archive.ubuntu.com jaunty-updates Release: The following signatures were invalid: BADSIG 40976EAF437D05B5 Ubuntu Archive Automatic Signing Key 

W: A error occurred during the signature verification. The repository is not updated and the previous index files will be used.GPG error: http://archive.ubuntu.com jaunty-security Release: The following signatures were invalid: BADSIG 40976EAF437D05B5 Ubuntu Archive Automatic Signing Key 

W: GPG error: http://archive.canonical.com jaunty Release: The following signatures were invalid: BADSIG 40976EAF437D05B5 Ubuntu Archive Automatic Signing Key 
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/jaunty-updates/Release  

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/jaunty-security/Release  

W: Some index files failed to download, they have been ignored, or old ones used instead.
W: You may want to run apt-get update to correct these problems

How to fix:

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

Source: GPG Ubuntu Jaunty Archive Error


38 Responses to “The following signatures were invalid: BADSIG 40976EAF437D05B5 Ubuntu Archive Automatic Signing Key”  

  1. 1 RedBirdiii

    Thanks!! That’s fixed it..

  2. 2 tamer

    W: A error occurred during the signature verification. The repository is not updated and the previous index files will be used.GPG error: http://archive.ubuntu.com jaunty-updates Release: The following signatures were invalid: BADSIG 40976EAF437D05B5 Ubuntu Archive Automatic Signing Key

    W: A error occurred during the signature verification. The repository is not updated and the previous index files will be used.GPG error: http://archive.ubuntu.com jaunty-security Release: The following signatures were invalid: BADSIG 40976EAF437D05B5 Ubuntu Archive Automatic Signing Key

    W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/jaunty-updates/Release

    W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/jaunty-security/Release

    W: Some index files failed to download, they have been ignored, or old ones used instead.
    W: You may want to run apt-get update to correct these problems

  3. 3 Lasse

    Thanks.

    It helped me.
    I had this problem on EasyPeasy 1.05 (which is based on Ubuntu 9.04)

  4. 4 Perl-Monkey-Bill

    Also fixed it for me, many thanks!
    PMB

  5. 5 Bernd

    Thank you very much, it worked well!

  6. 6 Huangzhimin

    Thanks,it does work!

  7. 7 Thorbjörn

    Yup, that fixed my Easypeasy 1.5 as well, thanks!

  8. 8 gorditazz

    I made it for me too!!
    thanks

  9. 9 Ian Maroney

    I’m otally new to Ubuntu (but enjoying myself) and am also new to using the Terminal.

    I am using easy peasy 1.5 which I installed on my eee900 just a few days ago.
    I resolved an issue on Skype following advice on the geteasypeasy forum and am now hoping to resolve an issue described exactly as above.

    I have tried entering using the terminal and entering the commands exactly as above (copy and paste) and appear to be stumbling at the first command.

    ian@ian-eee:~$ apt-get clean
    E: Could not open lock file /var/cache/apt/archives/lock – open (13 Permission denied)
    E: Unable to lock the download directory

    Full screenshot (though the rest is probably irrelevant) is as follows and any guidance in simple language) would be appreciated.

    ian@ian-eee:~$ apt-get clean
    E: Could not open lock file /var/cache/apt/archives/lock – open (13 Permission denied)
    E: Unable to lock the download directory
    ian@ian-eee:~$ cd /var/lib/apt
    ian@ian-eee:/var/lib/apt$ mv lists lists.old
    mv: cannot move `lists’ to `lists.old': Permission denied
    ian@ian-eee:/var/lib/apt$ mkdir -p lists/partial
    ian@ian-eee:/var/lib/apt$ apt-get clean
    E: Could not open lock file /var/cache/apt/archives/lock – open (13 Permission denied)
    E: Unable to lock the download directory
    ian@ian-eee:/var/lib/apt$ apt-get update

    Thanks – with a promise to try harder.
    Ian M

  10. 10 miguelo

    @ Ian…

    you have to run the commands as root (su root) or with sudo .

  11. 11 Beetlejuice321

    Luigi,

    This worked beautifully! Thanks so much!!!

  12. 12 Faisal

    Thank you. Those steps solved my problem.

  13. 13 Shane

    Yup, that fixed my Easypeasy 1.5 as well, thanks! [2]

  14. 14 Paulo

    Marvelous – worked like a charm – Many Thanks !

  15. 15 Kailas Narendran

    Awesome, thanks. I had this problem on easypeasy 1.5 on a eeepc 900 and this fixed it.

    An explaination of exactly what that sequence of commands did would be helpful.

    thanks!

  16. 16 gianpaolo

    thanks for aid good work, solved for my eee700.

  17. 17 CR

    Great! It worked for me too!
    Thanks a lot!

  18. 18 stjohnmedrano

    The easiest thing to try is to switch servers. Synaptic, Settings, Repositories, Download from…, Other, and select another server. Then Reload. Sometimes this happens during an update to the server.

  19. 19 velinx

    Thanks.

  20. 20 david6

    How to fix: (modified, for Ubuntu 9.10)

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

  21. 21 p5yk0tik

    It works ;-)

  22. 22 New User

    Thanks David6, the Ubuntu 9.10 update really did the trick

  23. 23 NNerys

    thanks this did the trick for me too.

  24. 24 Lux

    Tks dude!

  25. 25 Maria Joao H

    It worked for my eee701 with Easy Peasy. Thank you sooo much

  26. 26 Adam

    Perfect! Thanks.

  27. 27 Sergey

    Not for me…
    i still got this:

    W: GPG error: http://repos.zend.com server Release: The following signatures were invalid: BADSIG 2EAE1437F7D2C623 Infra team

  28. 28 Marcelo

    I had the same issue here. Solved everything about BADSIGs. Thank You!

  29. 29 Koeneman

    nice trick, helped me out on Ubuntu Meerkat!!!

    Thanks.

  30. 30 nelson

    graciass

  31. 31 GHOST

    Worked like a charm for me in ubuntu natty

  32. 32 Joel Leclerc

    Thanks! I just had to change the server to the Main server for it to work.

    For new users, remember to give the “sudo su” command ;-)

  33. 33 Luis H Barreto

    Muchas gracias. Funcionó perfectamente.

  34. 34 Doru

    For everyone still getting the same error after this procedure: please make sure that you try the manual way also:

    wget http://repos.zend.com/zend.key -O- |apt-key add –

    this will add the needed key to your lists. Hopefully it will help someone.

  35. 35 da

    Thanks a lot!!!

  36. 36 silver

    Thanks for posting this debuging instructions, this worked in my case too!

  37. 37 openscope

    Try this:

    sudo fuser -vvv /var/lib/dpkg/lock
    sudo rm /var/lib/apt/lists/lock
    sudo cp -arf /var/lib/dpkg /var/lib/dpkg.backup
    sudo cp /var/lib/dpkg/status-old /var/lib/dpkg/status
    sudo cp /var/lib/dpkg/available-old /var/lib/dpkg/available
    sudo rm -rf /var/lib/dpkg/updates/*
    sudo rm -rf /var/lib/apt/lists
    sudo rm /var/cache/apt/*.bin
    sudo mkdir /var/lib/apt/lists
    sudo mkdir /var/lib/apt/lists/partial
    LANG=C;sudo apt-get clean
    LANG=C;sudo apt-get autoclean
    LANG=C;sudo apt-get –purge autoremove
    LANG=C;sudo apt-get update -o APT::Cache-Limit=40000000
    sudo dpkg –clear-avail
    sudo dpkg –configure -a
    LANG=C;sudo apt-get -f install
    LANG=C;sudo apt-get –fix-missing install
    LANG=C;sudo apt-get update -o APT::Cache-Limit=40000000 && sudo apt-get dist-upgrade

  1. 1 วิธีแก้ The following signatures were invalid: BADSIG บน Ubuntu — Kan Ouivirach


Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>



Calendar

June 2009
M T W T F S S
« May   Jul »
1234567
891011121314
15161718192021
22232425262728
2930  

Follow me

twitter flickr LinkedIn feed

Subscribe by email

Enter your email address:

Archives


Categories

Tag Cloud


Listening