[Touch-packages] [Bug 1966092] [NEW] apt update doesn't update Packages list

2022-03-23 Thread Rossen
Public bug reported:


I'm investigating an issue where new packages in the repository are not picked 
up by hosts after running `apt-get update`. The repository is hosted on 
foreman/katello via pulp and pulp_deb. I know there have been comparability 
issues, but I'm not sure what is going wrong here.

There is no InRlease file (unsigned repo), but the Release file is
getting updated. However, the Packages files are not being updated
locally. See attached show how the files differ

The workaround for the moment is to delete the lists files for the
affected repository, and rerun `apt-get update`

** Affects: apt (Ubuntu)
 Importance: Undecided
 Status: New

** Attachment added: "aptupdate_packages_mismatch.txt"
   
https://bugs.launchpad.net/bugs/1966092/+attachment/5572201/+files/aptupdate_packages_mismatch.txt

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to apt in Ubuntu.
https://bugs.launchpad.net/bugs/1966092

Title:
  apt update doesn't update Packages list

Status in apt package in Ubuntu:
  New

Bug description:
  
  I'm investigating an issue where new packages in the repository are not 
picked up by hosts after running `apt-get update`. The repository is hosted on 
foreman/katello via pulp and pulp_deb. I know there have been comparability 
issues, but I'm not sure what is going wrong here.

  There is no InRlease file (unsigned repo), but the Release file is
  getting updated. However, the Packages files are not being updated
  locally. See attached show how the files differ

  The workaround for the moment is to delete the lists files for the
  affected repository, and rerun `apt-get update`

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apt/+bug/1966092/+subscriptions


-- 
Mailing list: https://launchpad.net/~touch-packages
Post to : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp


[Touch-packages] [Bug 1921626] Re: apt install - File has unexpected size - http pipeline

2021-03-29 Thread Rossen
With help from @juliank, I was able to transfer the state from my bionic
box to focal, and hirsute. Issue reproduces on all of them. On hirsute,
apt is 2.2.1. Where do we go from here?

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, 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 ". 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

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp


[Touch-packages] [Bug 1921626] Re: apt install - File has unexpected size - http pipeline

2021-03-28 Thread Rossen
> I am also a bit worried about the screenshot in the referred bugreport
as that shows two different servers replying (Apache vs some python via
a proxy).

The saltstack repository is served by pulp, so client -> httpd -> pulp.
I've verified that httpd responds with correctly. Not sure why pulpcore
response is slightly larger, maybe something to do with wsgi.

> Please let me know if you can reproduce this with 2.2.2 in hirsute

I don't have that mirrored, but I have focal, and I could not reproduce.
Apt 2.0.2

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, 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 ". 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

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp


[Touch-packages] [Bug 1921626] [NEW] apt install - File has unexpected size - http pipeline

2021-03-28 Thread Rossen
Public bug reported:

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 ". 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.

** Affects: apt (Ubuntu)
 Importance: Undecided
 Status: New

** Attachment added: "apt_install_unexpected_size.txt"
   
https://bugs.launchpad.net/bugs/1921626/+attachment/5481613/+files/apt_install_unexpected_size.txt

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, 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:
  New

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 ". 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

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp