[Bug 1921626] Re: apt install - File has unexpected size - http pipeline
Julian Andres Klode
1921626 at bugs.launchpad.net
Mon Mar 29 07:41:39 UTC 2021
> I don't have that mirrored, but I have focal, and I could not
reproduce. Apt 2.0.2
There have been no relevant changes between 1.6.y and 2.0.y, so it
really should reproduce with both of them or none of them.
But you have to be careful that the download is _exactly_ the same,
usually by pointing new apt at the older system state, otherwise you
might have lost your reproducer.
But yeah, this "comes and goes" is why we're not making much progress on
HTTP bugs.
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to apt in Ubuntu.
https://bugs.launchpad.net/bugs/1921626
Title:
apt install - File has unexpected size - http pipeline
Status in apt package in Ubuntu:
Incomplete
Bug description:
1) Ubuntu 18.04.5 LTS
2) apt 1.6.12ubuntu0.2
3) What you expected to happen
I set a custom set of repositories in /etc/apt/sources.list and then I
run "apt install <list of packages>". I expect the command to download
and install the packages.
4) What happened instead
"apt install ..." fails during the download phase with "File has
unexpected size ...."
5) What I've established trying to debug the issue:
- Disabling http pipelining resolves the issue: "apt -oAcquire::http::Pipeline-Depth=0 install ..."
- All the packages, and repo metadata in the referenced repositories is correct
- The issue is easily reproducible in my setup with different repositories
- tcpdump shows that requests and responses are in the correct order, and contain the correct data
More details about the issue:
https://projects.theforeman.org/issues/32178
With all the above in mind, it appears that this must be a bug in apt's http pipeline handling.
It seem that apt is trying to match a request to do wrong response, and size doesn't match.
I've attached an example log, where the error pops up for multiple
packages, and they all appear to be compared to one size (86464
bytes). That size is correct for one of the package being downloaded,
but somehow apt is trying to match to multiple other packages.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apt/+bug/1921626/+subscriptions
More information about the foundations-bugs
mailing list