[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#657029: apt-get update does not understand content negotiation



reassign 657029 mirrors
thanks

Andreas Beckmann <debian@abeckmann.de> writes:
> wget http://ftp.de.debian.org/debian/dists/sid/main/i18n/Translation-en
>   => 404 Not Found
> wget http://ftp.de.debian.org/debian/dists/sid/main/i18n/Translation-en.bz2
>   => 200 OK Length: 3857620 (3.7M) [application/x-bzip2]
> wget http://ftp2.de.debian.org/debian/dists/sid/main/i18n/Translation-en
>   => 200 OK Length: 3857620 (3.7M) [application/x-bzip2]
> wget http://ftp2.de.debian.org/debian/dists/sid/main/i18n/Translation-en.bz2
>   => 200 OK Length: 3857620 (3.7M) [application/octet-stream]

> wget -S http://ftp2.de.debian.org/debian/dists/sid/main/i18n/Translation-en
> --2012-01-23 16:26:21--  http://ftp2.de.debian.org/debian/dists/sid/main/i18n/Translation-en
> Resolving ftp2.de.debian.org... 137.226.34.42
> Connecting to ftp2.de.debian.org|137.226.34.42|:80... connected.
> HTTP request sent, awaiting response...
>   HTTP/1.1 200 OK
>   Server: nginx/1.0.0
>   Date: Mon, 23 Jan 2012 15:26:21 GMT
>   Content-Type: application/x-bzip2
>   Connection: keep-alive
>   Content-Location: Translation-en.bz2
>   Vary: negotiate
>   TCN: choice
>   Last-Modified: Mon, 23 Jan 2012 14:01:21 GMT
>   ETag: "19103b3-3adcd4-4b7327715ae40;4b7327715ae40"
>   Accept-Ranges: bytes
>   Content-Length: 3857620
> Length: 3857620 (3.7M) [application/x-bzip2]
> Saving to: `Translation-en.5'

I don't know how content negotiation in HTTP works, but it looks wrong
to just send the compressed file when requesting the uncompressed
version.  I think for transparent compression there needs to be a
'Content-Encoding' field somewhere.

As it does not happen with all mirrors, but only with ftp2.de.d.o (and
others?), I'm inclined to blame the mirror configuration.

>   Get:7 http://ftp2.de.debian.org sid/main Translation-en [3858 kB]
>   Get:8 http://ftp2.de.debian.org sid/non-free Translation-en [69.5 kB]
>   E: Unable to parse package file /var/lib/apt/lists/partial/ftp2.de.debian.org_debian_dists_sid_main_i18n_Translation-en.decomp (1)
>   Fetched 4162 kB in 3s (1209 kB/s)
>   W: Failed to fetch copy:/var/lib/apt/lists/partial/ftp2.de.debian.org_debian_dists_sid_main_i18n_Translation-en

Regards,
Ansgar



Reply to: