Results 1 to 10 of 10

Thread: apt-cacher-ng "The following signatures were invalid: BADSIG"

  1. #1
    Join Date
    Aug 2006
    Beans
    233

    apt-cacher-ng "The following signatures were invalid: BADSIG"

    I've been running apt-cacher-ng for a while now and I just recently started getting this message when doing an apt-get update on clients:

    W: GPG error: http://thebone lucid-updates Release: The following signatures were invalid: BADSIG 40976EAF437D05B5 Ubuntu Archive Automatic Signing Key <ftpmaster@ubuntu.com>

    What can I do to clear this?

    Because of this error it's saying that the packages can't be authenticated.

  2. #2
    Join Date
    Aug 2006
    Beans
    233

    Re: apt-cacher-ng "The following signatures were invalid: BADSIG"

    Upon suggestion I have also tried the command sudo apt-get update -o Acquire::http::No-Cache=true
    on the client and got similar results:

    Code:
    david@lucid-testing:~$  sudo apt-get update -o Acquire::http::No-Cache=true
    Hit http://thebone lucid Release.gpg
    Ign http://thebone/us.archive.ubuntu.com/ubuntu/ lucid/main Translation-en_US
    Ign http://thebone/us.archive.ubuntu.com/ubuntu/ lucid/restricted Translation-en_US
    Ign http://thebone/us.archive.ubuntu.com/ubuntu/ lucid/universe Translation-en_US
    Ign http://thebone/us.archive.ubuntu.com/ubuntu/ lucid/multiverse Translation-en_US
    Get:1 http://thebone lucid-updates Release.gpg [189B]
    Ign http://thebone/us.archive.ubuntu.com/ubuntu/ lucid-updates/main Translation-en_US
    Ign http://thebone/us.archive.ubuntu.com/ubuntu/ lucid-updates/restricted Translation-en_US
    Ign http://thebone/us.archive.ubuntu.com/ubuntu/ lucid-updates/universe Translation-en_US
    Ign http://thebone/us.archive.ubuntu.com/ubuntu/ lucid-updates/multiverse Translation-en_US
    Hit http://thebone lucid-backports Release.gpg
    Ign http://thebone/us.archive.ubuntu.com/ubuntu/ lucid-backports/main Translation-en_US
    Ign http://thebone/us.archive.ubuntu.com/ubuntu/ lucid-backports/restricted Translation-en_US
    Ign http://thebone/us.archive.ubuntu.com/ubuntu/ lucid-backports/universe Translation-en_US
    Ign http://thebone/us.archive.ubuntu.com/ubuntu/ lucid-backports/multiverse Translation-en_US
    Hit http://thebone lucid Release.gpg
    Ign http://thebone/archive.canonical.com/ubuntu/ lucid/partner Translation-en_US
    Hit http://thebone lucid-security Release.gpg
    Ign http://thebone/security.ubuntu.com/ubuntu/ lucid-security/main Translation-en_US
    Ign http://thebone/security.ubuntu.com/ubuntu/ lucid-security/restricted Translation-en_US
    Ign http://thebone/security.ubuntu.com/ubuntu/ lucid-security/universe Translation-en_US
    Ign http://thebone/security.ubuntu.com/ubuntu/ lucid-security/multiverse Translation-en_US
    Hit http://thebone lucid Release
    Get:2 http://thebone lucid-updates Release [38.5kB]
    Ign http://thebone lucid-updates Release
    Hit http://thebone lucid-backports Release
    Hit http://thebone lucid Release
    Hit http://thebone lucid-security Release
    Hit http://thebone lucid/main Packages
    Hit http://thebone lucid/restricted Packages
    Hit http://thebone lucid/main Sources
    Hit http://thebone lucid/restricted Sources
    Hit http://thebone lucid/universe Packages
    Hit http://thebone lucid/universe Sources
    Hit http://thebone lucid/multiverse Packages
    Hit http://thebone lucid/multiverse Sources
    Hit http://thebone lucid-updates/main Packages
    Hit http://thebone lucid-updates/restricted Packages
    Hit http://thebone lucid-updates/main Sources
    Hit http://thebone lucid-updates/restricted Sources
    Hit http://thebone lucid-updates/universe Packages
    Hit http://thebone lucid-updates/universe Sources
    Hit http://thebone lucid-updates/multiverse Packages
    Hit http://thebone lucid-updates/multiverse Sources
    Hit http://thebone lucid-backports/main Packages
    Hit http://thebone lucid-backports/restricted Packages
    Hit http://thebone lucid-backports/universe Packages
    Hit http://thebone lucid-backports/multiverse Packages
    Hit http://thebone lucid-backports/main Sources
    Hit http://thebone lucid-backports/restricted Sources
    Hit http://thebone lucid-backports/universe Sources
    Hit http://thebone lucid-backports/multiverse Sources
    Hit http://thebone lucid/partner Packages
    Hit http://thebone lucid/partner Sources
    Hit http://thebone lucid-security/main Packages
    Hit http://thebone lucid-security/restricted Packages
    Hit http://thebone lucid-security/main Sources
    Hit http://thebone lucid-security/restricted Sources
    Hit http://thebone lucid-security/universe Packages
    Hit http://thebone lucid-security/universe Sources
    Hit http://thebone lucid-security/multiverse Packages
    Hit http://thebone lucid-security/multiverse Sources
    Fetched 190B in 19s (10B/s)
    Reading package lists... Done
    W: GPG error: http://thebone lucid-updates Release: The following signatures were invalid: BADSIG 40976EAF437D05B5 Ubuntu Archive Automatic Signing Key <ftpmaster@ubuntu.com>
    david@lucid-testing:~$
    Last edited by davidshere; May 24th, 2010 at 03:55 PM.

  3. #3
    Join Date
    Aug 2006
    Beans
    233

    Re: apt-cacher-ng "The following signatures were invalid: BADSIG"

    bump

  4. #4
    Join Date
    Nov 2006
    Beans
    83

    Re: apt-cacher-ng "The following signatures were invalid: BADSIG"

    Yeah, that would interest me as well!

  5. #5
    Join Date
    Sep 2010
    Beans
    Hidden!
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: apt-cacher-ng "The following signatures were invalid: BADSIG"

    Try these commands:-

    Code:
    apt-get clean
    cd /var/lib/apt
    mv lists lists.old
    mkdir -p lists/partial
    apt-get clean
    apt-get update
    " We need Support to make Ubuntu more Flexible > http://www.facebook.com/groups/224031050966311?ap=1 "

  6. #6
    Join Date
    May 2005
    Location
    Dundas, Ontario, Canada
    Beans
    159
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: apt-cacher-ng "The following signatures were invalid: BADSIG"

    Neither method fixed the problem. Any other ideas besides purging the entire cache?
    Last edited by WildTangent; March 1st, 2011 at 09:14 PM.

  7. #7
    Join Date
    Jan 2007
    Location
    Berkshire, UK
    Beans
    30
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: apt-cacher-ng "The following signatures were invalid: BADSIG"

    Hi,

    I know it's been a while since the question was asked, but if you never found a fix this may help...

    I get a similar (known) problem regularly with the Virtualbox repository, and found that it also seems apt-cacher keeps whatever bad file.

    So, as well as doing the steps listed.
    Before doing the final "apt-get update"

    Choose this from Apt-Cacher NG webpage on the server:
    Force the download of index files (even having fresh ones)

    Takes a while, but found that was the only thing that fixed it for me.

    hth

  8. #8
    Join Date
    Nov 2006
    Beans
    83

    Re: apt-cacher-ng "The following signatures were invalid: BADSIG"

    Quote Originally Posted by smoka View Post
    Choose this from Apt-Cacher NG webpage on the server:
    Force the download of index files (even having fresh ones)
    Ah, good to know, I'll try that next time.

    So far, a reliable method was deleting the cache files on the server:

    Code:
    rm -R /var/cache/apt-cacher-ng/download.virtualbox.org
    After the next 'apt-get update' on the client, the error messages disappeared.

    Although a bit harsh, it worked every time.
    Those Who Sacrifice Liberty For Security Deserve Neither. - Benjamin Franklin

  9. #9
    Join Date
    Jan 2007
    Location
    Berkshire, UK
    Beans
    30
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: apt-cacher-ng "The following signatures were invalid: BADSIG"

    Quote Originally Posted by apalacheno View Post

    Code:
    rm -R /var/cache/apt-cacher-ng/download.virtualbox.org
    Thanks, that seems to have worked a treat also, and much faster than doing the "Force the download of index files (even having fresh ones)" option.

  10. #10
    Join Date
    Nov 2006
    Beans
    83

    Re: apt-cacher-ng "The following signatures were invalid: BADSIG"

    You're welcome
    Those Who Sacrifice Liberty For Security Deserve Neither. - Benjamin Franklin

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •