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

Bug#831762: apt data corrupts with MergeList



On Sat, Jul 23, 2016 at 03:38:20PM +0530, Ritesh Raj Sarraf wrote:
> I was able to reproduce it on the very first attempt.
[…]
> Fetched 18.0 MB in 1min 42s (175 kB/s)                                                        
> Reading package lists... Error!
> E: Encountered a section with no Package: header
> E: Problem with MergeList /var/lib/apt/lists/httpredir.debian.org_debian_dists_testing_main_binary-amd64_Packages
> E: The package lists or status file could not be parsed or opened.
> 15:29 ___    _  => 100  

Thanks. The file is indeed corrupted – looks like the last ~52879 bytes
are partial repeats of parts of the end of the file. If I haven't messed
up it looks like two blocks: one the last 22980 bytes of the file
appended and then the last 29897 bytes (not of what was written to the
file, but what should have been written to the file – that the later
part is larger than the former is a bit puzzling, too).

Were the data files already broken before the run and you did expect
them to be "fixed" by apt in a following call or was the state clean?


You have unfortunately cut the description how the file was 'created'
– aka if it was patched via pdiff or downloaded completely anew.  Your
download summary of 18 MB suggests that at least some files were
downloaded completely while others were obviously patched.

Even after quite a bit of code staring I don't see how that could have
happened, so lets see if it becomes more obvious if we know how the file
came to be – and as we do run afresh, lets add a few debug options to
have the most "fun" with it (beware, lots of output):
-o Debug::pkgAcquire::Worker=1 -o Debug::Acquire::http=1


Best regards

David Kalnischkies

Attachment: signature.asc
Description: PGP signature


Reply to: