Project

Profile

Help

Issue #8506

closed

apt install - File has unexpected size - http pipeline

Added by rgp almost 3 years ago. Updated over 2 years ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
High
Assignee:
-
Sprint/Milestone:
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Version - Debian:
Platform Release:
Target Release - Debian:
OS:
Triaged:
No
Groomed:
No
Sprint Candidate:
No
Tags:
Katello
Sprint:
Quarter:

Description

Apt install downloads packages by default using http pipelining. However, apt relies on "Size" field from "Packages" file to match responses, but pulp_deb repos do not appear to have it. In certain condition that causes apt to fail.

root@aptbug:~# curl -sS https://repo.saltproject.io/py3/ubuntu/18.04/amd64/latest/dists/bionic/main/binary-amd64/Packages | grep -c ^Size
14
root@aptbug:~# curl -sS http://foreman.example.com/pulp/deb/MyOrg/Library/custom/Saltstack/ubuntu_18_04_salt_latest/dists/default/all/binary-amd64/Packages | grep -c ^Size
0

More details: https://projects.theforeman.org/issues/32178#note-9


Related issues

Related to Debian Support - Issue #8232: APT publications do not retain all fields from upstream package indeciesCLOSED - CURRENTRELEASEActions
Has duplicate Debian Support - Issue #8512: deb repo - apt install - File has unexpected size - http pipelineCLOSED - DUPLICATEActions
Copied to Debian Support - Backport #9167: Backport 8506 to 2.13CLOSED - CURRENTRELEASE

Actions

Also available in: Atom PDF