[Bug 24061] Re: GPG error with apt-get/aptitude/update-manager behind proxy (BADSIG 40976EAF437D05B5)

Brian Murray brian at ubuntu.com
Thu Oct 11 19:13:23 UTC 2012


Regarding point #2 in comment #70:

2. Some people had bad files on the local box (through proxy or direct
download) and for them the fix was "sudo mv /var/lib/apt/lists
/var/lib/apt/lists.old ; sudo mkdir -p /var/lib/apt/lists/partial"

The issue of apt creating bad files on disk in /var/lib/apt/lists/ has
been fixed in the quantal release of Ubuntu which will become Ubuntu
12.10.  Details regarding the fix appear in this changelog:

apt (0.9.7.5ubuntu2) quantal; urgency=low

  Merged from lp:~donkult/apt/experimental:

  [ David Kalnischkies ]
  * apt-pkg/contrib/strutl.cc:
    - support \n and \r\n line endings in ReadMessages

  [ Michael Vogt ]
  * lp:~mvo/apt/webserver-simulate-broken-with-fix346386:
    - merge fix for LP: #346386

I've tested that version of apt with the dummy-proxy provided by Colin
Watson and I received the following message in a terminal after running
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://archive.ubuntu.com precise Release: The following signatures were invalid: NODATA 1 NODATA 2
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/precise/Release
W: Some index files failed to download. They have been ignored, or old ones used instead.

After this I was able to use apt-get update again without having to
clear the files in /var/lib/apt/lists.  You may find some further
information about this bug in bug 346386.

We are currently working on getting this fix into the -proposed
repository for 12.04 and a comment will be added to bug 346386
indicating when it is available and how to test it.

I'll do some further research into update-manager's behavior if there
are bad files in /var/lib/apt/lists and open a new bug as needed.  There
are likely some user interface improvements that should be made if index
files are corrupt or fail to download.

** Changed in: apt (Ubuntu Quantal)
       Status: Triaged => Fix Released

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to update-manager in Ubuntu.
https://bugs.launchpad.net/bugs/24061

Title:
  GPG error with apt-get/aptitude/update-manager behind proxy (BADSIG
  40976EAF437D05B5)

Status in “apt” package in Ubuntu:
  Fix Released
Status in “update-manager” package in Ubuntu:
  Won't Fix
Status in “apt” source package in Precise:
  Triaged
Status in “update-manager” source package in Precise:
  Won't Fix
Status in “apt” source package in Quantal:
  Fix Released
Status in “update-manager” source package in Quantal:
  Won't Fix

Bug description:
  I keep getting this when i launch the update manager.

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

  How can I fix it?

  ***********
  WORKAROUND:
  ----------
  Run the following commands(saves a backup of the old lists and creates a new lists folder) and the BADSIG error does not occur :

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

  ***********

  comment from Rolf Leggewie: This is due to cache inconsistencies and
  thus is not necessarily a bug in Ubuntu at all.  But I hope the fine
  devs can find a way to better deal with broken proxies.  This is a
  very visible issue, a large number of internet connections are behind
  proxies and the users cannot do anything about it.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apt/+bug/24061/+subscriptions




More information about the foundations-bugs mailing list