Comment 28 for bug 24061

Revision history for this message
Andrew Cooks (acooks) wrote : Re: GPG error with apt-get (BADSIG 40976EAF437D05B5)

I believe that this error is caused by a caching proxy which returns stale files, instead of actually retrieving the latest files from the mirror and returning that. In my case, it is a transparent squid proxy.

I added
Acquire::http::No-Cache "true";
Acquire::http::Max-Age "0";
to
/etc/apt/apt.conf.d/10broken_proxy

On inspection of the HTTP traffic, the correct headers were sent in the request, but the proxy happily ignored them and returned a cached response.

I guess I should report this as a squid bug, but that will not help the majority of users experiencing this problem any time soon.