ICS/Lotus (mostly), Linux, Travel, Skiing, Mixology, and Random Musing of Interest

Bill Malchisky


    Find me here…

  • Skype
  • Bleedyellow via Sametime
  • Ubuntu: Clearing GPG -- BADSIG Errors During Update

    Bill Malchisky  September 3 2014
    In updating my Ubuntu LTS host OS caused me to receive several GPG BADSIG errors, visually captured in the following Update Manager error message.

    Image:Ubuntu: Clearing GPG -- BADSIG Errors During Update

    You can see the errors more closely via a terminal window.

    malchw@san-domino:~$ sudo apt-get update

    W: A error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error:
    http://extras.ubuntu.com precise Release: The following signatures were invalid: BADSIG 16126D3A3E5C1192 Ubuntu Extras Archive Automatic Signing Key

    W: GPG error:
    http://ppa.launchpad.net precise Release: The following signatures were invalid: BADSIG B22A95F88110A93A Launchpad PPA for Bumlebee Project

    Two ways to resolve -- persistent and the brute force methods. I'll demonstrate the former first, then the latter for a stubborn error.

    Persistent Solution

    Step 0 -- malchw@san-domino:~$ sudo apt-get clean
    Step 1 Combo -- malchw@san-domino:~$ sudo apt-get update && sudo apt-get upgrade

    This was enough to get me to update my files sans issue, but the BADSIG errors remained.

    The following packages have been kept back:


    The following packages will be upgraded:

    apparmor apport apport-gtk dh-apparmor flashplugin-installer

    gnome-control-center gnome-control-center-data google-chrome-stable

    icedtea-6-jre-cacao icedtea-6-jre-jamvm icedtea-7-jre-jamvm krb5-locales

    libavcodec-extra-53 libavformat53 libavutil-extra-51 libc-bin libc-dev-bin

    libc6 libc6:i386 libc6-dev libc6-i386 libgnome-control-center1

    libgssapi-krb5-2 libgssapi-krb5-2:i386 libjs-jquery libk5crypto3

    libk5crypto3:i386 libkrb5-3 libkrb5-3:i386 libkrb5support0

    libkrb5support0:i386 libpostproc52 libswscale2 linux-libc-dev

    multiarch-support openjdk-6-jre openjdk-6-jre-headless openjdk-6-jre-lib

    openjdk-7-jre openjdk-7-jre-headless postfix python-apport


    43 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.

    Need to get 158 MB of archives.

    After this operation, 4,047 kB of additional disk space will be used.

    Do you want to continue [Y/n]? Y

    Though pleased to have the long list of updated applications completed, I wanted to remove the errors. Onward to step two.
    Wanting to rule out any caching issues for installed packages, I removed that from the permutation list.

    Step 2 -- malchw@san-domino:~$ sudo apt-get update -o Acquire::http::No-Cache=True
    Next, run Step 1 Combo, to see if things improve. For me, I needed to continue troubleshooting.

    Thanks to AskUbuntu for the next command.
    Step 3 -- malchw@san-domino:~$ sudo apt-get update -o Acquire::BrokenProxy=true
    Then run Step 1 Combo.

    If the command comes back sans error(s), then you are finished. Else, time for more drastic actions.

    Brute Force Solution

    The solution depicted below is listed on over three sites sites, thus I am unable to provide an accurate attribution.

    malchw@san-domino:~$ sudo apt-get clean
    malchw@san-domino:~$ cd /var/lib/apt
    malchw@san-domino:/var/lib/apt$ sudo mv lists lists.old
    malchw@san-domino:/var/lib/apt$ sudo mkdir -p lists/partial
    malchw@san-domino:/var/lib/apt$ sudo apt-get clean
    malchw@san-domino:/var/lib/apt$ sudo apt-get update

    http://us.archive.ubuntu.com precise-updates Release.gpg
    http://us.archive.ubuntu.com precise Release.gpg                          
    http://us.archive.ubuntu.com precise-backports Release.gpg                
    http://us.archive.ubuntu.com precise-updates Release        

    http://ppa.launchpad.net precise/main Translation-en_US
    http://ppa.launchpad.net precise/main Translation-en
    http://ppa.launchpad.net precise/main Translation-en_US
    http://ppa.launchpad.net precise/main Translation-en
    Reading package lists... Done

    Running the clean returned no results which is normal, but the update here, proved rewarding: came back error free. So, if the persistent approach does not clear your BADSIG error(s), then the brute force option is your best bet.

    Good luck.
    No Comments Found

    Powered by IBM Lotus Domino 8 | Lotus User Group | Get Firefox! | This blog is listed on Planet Lotus   IBM Certified

    © 2010 William Malchisky.