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

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



Package: apt
Version: 0.8.15.9
Severity: normal

Hi,

I just noticed the following failure while running apt-get update in a
fresh, clean sid chroot:

  E: Unable to parse package file /var/lib/apt/lists/partial/ftp2.de.debian.org_debian_dists_sid_main_i18n_Translation-en.decomp (1)
  W: Failed to fetch copy:/var/lib/apt/lists/partial/ftp2.de.debian.org_debian_dists_sid_main_i18n_Translation-en
  E: Some index files failed to download. They have been ignored, or old ones used instead.

This can be reproduced with
  sudo piuparts -d sid -m http://ftp2.de.debian.org/debian -a hello

Some testing shows that this is a mirror specific problem. Other mirrors
work fine. The only difference I could find is how a request for
Translation-en(.bz2) is answered by the mirrors:


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'

100%[=...=>] 3,857,620   1.05M/s   in 3.6s

2012-01-23 16:26:25 (1.03 MB/s) - `Translation-en.5' saved [3857620/3857620]


This looks like apt-get receives a compressed file for the request for
Translation-en but does ignore the Content-Type and treats it as a text
file which it fails do parse ...

This issues seems to be uncovered only by the description-less package
indices as announced yesterday:
http://lists.debian.org/debian-devel-announce/2012/01/msg00004.html


Andreas


Full transcript of the apt-get update command:

1m25.5s DEBUG: Starting command: ['chroot', '/tmp/tmpZOvwZN', 'eatmydata', 'apt-get', 'update']
1m29.0s DUMP:
  Get:1 http://ftp2.de.debian.org sid InRelease [190 kB]
  Get:2 http://ftp2.de.debian.org sid/main amd64 Packages/DiffIndex [2038 B]
  Get:3 http://ftp2.de.debian.org sid/contrib amd64 Packages/DiffIndex [2023 B]
  Get:4 http://ftp2.de.debian.org sid/non-free amd64 Packages/DiffIndex [2023 B]
  Ign http://ftp2.de.debian.org sid/contrib TranslationIndex
  Get:5 http://ftp2.de.debian.org sid/main TranslationIndex [2154 B]
  Ign http://ftp2.de.debian.org sid/non-free TranslationIndex
  Get:6 http://ftp2.de.debian.org sid/contrib Translation-en [36.8 kB]
  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

  E: Some index files failed to download. They have been ignored, or old ones used instead.
1m29.0s ERROR: Command failed (status=100): ['chroot', '/tmp/tmpZOvwZN', 'eatmydata', 'apt-get', 'update']



Reply to: