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

Bug#595691: updates stalls forever if some files on mirror have 0 bytes



2010/9/6  <peter.karbaliotis@gmail.com>:
> This still happens after downgrading to 0.8.0 and is fixed by a further
> downgrade to 0.7.25.3.

Does only work because the broken file is not downloaded in 0.7.25.3
as the improved Translation handling is only present in 0.7.26~exp? onwards.

The problem is not that the Translation file is empty, but that the file which
should be an archive is empty. As an empty file can't be a valid archive
(somewhere must be the archive header placed) the archive sends bogus.

The bug in APT is just that it handles the empty-file case in the wrong way:
It already handles it to save us and you from getting massive amount of
gzip/bzip2 failure output as as i said an empty file is not a valid archive -
just the method reports success instead of failure, so we end up in an endless
loop awaiting for further response (uncompressed data) from the process which
will never be sent…

You can workaround the broken archive by disabling it (obvious) or
you run apt-get update -o Acquire::Languages=none
beside that if i see it correctly the archive itself is already cleaned up…
As long as no fixed APT is available of course -
which should be the case in few hours, i guess.

Severity is a bit high as it is not an official archive and the faulty code
is at least from the year 2006 (never triggered until now) but okay, it
is a (unlikely but) serious problem if an official archive would ship broken
files now…


Best regards

David Kalnischkies



Reply to: