Bug#765357: apt: fails to update if larger partial file exists
Package: apt
Version: 0.9.7.9+deb7u2
Severity: normal
Dear Maintainer,
Had a partially downloaded Packages.gz from the stable conrib repo in /var/lib/apt/lists/
This file was larger than the current Packages.gz
I guess this is what made apt-get update do a request for Packages.gz which included the "Range: bytes=<currentsize>-"
Since the start of the range was beyond the end of the current version of the requested file,
the server responds with 416 "Requested Range Not Satisfiable".
apt-get then displays:
W: Failed to fetch http://ftp.no.debian.org/debian/dists/wheezy/contrib/source/Sources: 404 Not Found [IP: 128.39.3.170 80]
This is not correct. The returned error, from a tcpdump, was 416, and the correct behaviour would be to discard the
partial file and try again from scratch.
-- Package-specific info:
-- (no /etc/apt/preferences present) --
-- (/etc/apt/sources.list present, but not submitted) --
-- System Information:
Debian Release: 7.6
APT prefers stable
APT policy: (500, 'stable')
Architecture: amd64 (x86_64)
Kernel: Linux 3.2.0-4-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages apt depends on:
ii debian-archive-keyring 2012.4
ii gnupg 1.4.12-7+deb7u6
ii libapt-pkg4.12 0.9.7.9+deb7u2
ii libc6 2.13-38+deb7u4
ii libgcc1 1:4.7.2-5
ii libstdc++6 4.7.2-5
apt recommends no packages.
Versions of packages apt suggests:
pn apt-doc <none>
ii aptitude 0.6.8.2-1
ii dpkg-dev 1.16.15
ii python-apt 0.8.8.2
ii xz-utils 5.1.1alpha+20120614-2
-- no debconf information
Reply to: