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.
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 :http:: No-Cache "true"; :http:: Max-Age "0"; apt.conf. d/10broken_ proxy
Acquire:
Acquire:
to
/etc/apt/
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.