squid and apt
In the past few months apt-get update
started failing when using a squid3 web cache.
It woudl give errors like these…
404 Not Found [IP: 149.20.20.135 80]
The HTTP server sent an invalid reply header [IP: 130.89.149.227 80]
Failed to fetch .../Packages 404 Not Found [IP: 149.20.20.135 80]
Failed to fetch .../Sources 404 Not Found [IP: 149.20.20.135 80]
- etc
I initally found some missleading information that would suggest this bug was fixed in future releases of squid3; that was not the case.
I finally found a solution to the issue in this blog post.
After adding the following line to my /etc/squid3/squid.conf
, apt went back to working.
refresh_all_ims on
Read other posts