Re: apt-get may accept inconsistent data
On Sun, May 04, 2008 at 06:50:35PM +0200, Goswin von Brederlow wrote:
> Does the file actually differ?
security.debian.org_dists_etch_updates_main_binary-i386_Packages
Yes, it has been modified.
> Could you strace apt-get and see what the http method sends and
> recieves from squid and apt-get?
tcpdump and wireshark did help.
apt-get sends a http GET request for Packages.bz2. Part of this
request is this information:
Cache-Control: max-age=0 If-Modified-Since: Sun, 27 Apr 2008 09:15:01 GMT
Squid response:
HTTP/1.0 304 Not Modified Date: Sun, 04 May 2008 16:34:28
GMT Server Apache/2.2.3 ( Debian ) .... Cache: HIT from
servername ... Proxy-Connection: close
The proxy has the current version (2008-05-02) in the cache.
Squid 3.0.PRE5-5 seems to be reponsible for this problem, but
IMHO apt-get should be able to recognize it.
--
Stefan Tichy ( dlist at pi4tel dot de )
Reply to: