I want to add that I have experienced this issue with every repo source I have run through apt-cacher-ng 3.7.4-1build1. This includes caching for Raspbian repos, base Ubuntu repos for both 20.04 and 22.04, and PPAs. With the PPA's, I am guaranteed to hit the issue if I have to download more than 2 packages from any given PPA. For the Ubuntu and Raspian repos, if an installation or update requires more than 10 packages to be installed the issue pops up.
As an example, I installed "flowblade" last night, and it took several "apt install flowblade" to get past the dependency install (it has a bunch of deps). When the package is fully installed a machine, and therefore the deps are fully cached in apt-cacher-ng, this issue doesn't happen. It's only on the first pull.
I want to add that I have experienced this issue with every repo source I have run through apt-cacher-ng 3.7.4-1build1. This includes caching for Raspbian repos, base Ubuntu repos for both 20.04 and 22.04, and PPAs. With the PPA's, I am guaranteed to hit the issue if I have to download more than 2 packages from any given PPA. For the Ubuntu and Raspian repos, if an installation or update requires more than 10 packages to be installed the issue pops up.
As an example, I installed "flowblade" last night, and it took several "apt install flowblade" to get past the dependency install (it has a bunch of deps). When the package is fully installed a machine, and therefore the deps are fully cached in apt-cacher-ng, this issue doesn't happen. It's only on the first pull.