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

Bug#802617: apt-transport-https: apt-get update: W: Size of file [...] is not what the server reported



Control: fixed -1 1.1~exp14

On Wed, Oct 21, 2015 at 08:29:19PM +0200, Julian Andres Klode wrote:
> On Wed, Oct 21, 2015 at 07:31:19PM +0200, Alex wrote:
> > I get an error while executing apt-get update:
> > 
> >     W: Size of file /var/lib/apt/lists/partial/github.com_XavierBerger_RPi-Monitor-deb_raw_master_repo_Packages.gz is not what the server reported 442 152
> 
> I cannot reproduce this with 1.1~exp14.

Based on
$ git log origin/debian/experimental --not origin/debian/sid methods/https.cc
alone I would guess a2d40703e4a5590a689ace4466f92e590434944d and upwards are
responsible for it not happening anymore, but I remember also my own dive into
this area (27925d82dd0cbae74d48040363fe6f6c2bae5215) and the message comes from
the acquire system, its not totally unlikely that there is more to be found… so
there are probably a multitude of (incorrect) reasons why this message could
occur someone with a lot more time and passion for history digging (as in the
meantime the involved code is totally different) than I currently have needs to
wade through all this.

Or, we could just silence the warning. Its gone in newer releases as the place
it was printed is too late to have any positive impact… Nowadays http/https
know what size to expect and actively deny accepting more. Previously all the
system does was raising this rather unhelpful warning and proceed as if nothing
happend.

Note that the size the server reported isn't the size in the Release file, that
would have been to easy, its the size of data the server claims to send to us,
so these values can happily disagree and verification later on can still pass
successfully (the only thing which is slightly off is the progress report as
its working with the wrong values).


Oh, and for the record: I have no clear opinion on what should be done about
it – I will leave that for the "history digging timelords" to decide.

Best regards

David Kalnischkies

Attachment: signature.asc
Description: PGP signature


Reply to: