Welcome to the Inedo Forums! Check out the Forums Guide for help getting started.
If you are experiencing any issues with the forum software, please visit the Contact Form on our website and let us know!
Debian feed: Architecture: all packages never served from cache (binary-amd64 index gives them an _amd64.deb Filename)
-
Title: Debian feed: Architecture: all packages never served from cache (binary-amd64 index gives them an _amd64.deb Filename)
Hi,
We use a Debian feed (not Debian Legacy) with Ubuntu noble connectors.
Architecture: allpackages are never served from the feed's cache when apt downloads them. Every download fetches the package from the connector again.Architecture: amd64packages cache normally.Versions: ProGet 2026.14 (26.0.14.11) and 2026.2 (26.0.2.16). We use the Docker image with an external PostgreSQL database.
Feed setup: a Debian connector to
http://archive.ubuntu.com/ubuntu/with distributionnobleand componentsmain multiverse restricted universe. A feed with only this one connector reproduces the problem, and so does our 4-connector feed (noble, -updates, -backports, -security).What happens
dists/noble/main/binary-amd64/Packageslists arch=all packages under an amd64 path:Package: gnome-themes-extra-data Architecture: all Version: 3.28-2ubuntu5 Filename: pool/noble/main/amd64/gnome-themes-extra-data/gnome-themes-extra-data_3.28-2ubuntu5_amd64.debapt 2.8.4 on Ubuntu 24.04 downloads that Filename. Each download at that path:
- is fetched from the connector again (TTFB 1–6 s for vim-runtime),
- resets the package's
publisheddate, - leaves
downloadsat 0.
The UI shows the version as "Remote Package". The cached record has qualifier
arch=all&distro=noble.The same package at
pool/noble/main/all/gnome-themes-extra-data/gnome-themes-extra-data_3.28-2ubuntu5_all.debis served from cache: TTFB about 0.06 s,downloadsgoes 1, 2, 3, andpublishedstays the same. The mixed paths (.../amd64/..._all.deband.../all/..._amd64.deb) return 404.On a new feed,
binary-all/Packagesreturns 404 andReleasesaysArchitectures: amd64 i386. After an arch=all package has been cached,binary-all/Packagesappears with the correct.../all/..._all.debFilename, andReleasechanges toArchitectures: all amd64 i386.binary-amd64/Packageskeeps the amd64 Filename for the same package.For comparison, upstream Ubuntu lists arch=all packages only in binary-amd64, with an
_all.debFilename.Repro
R=https://<proget>; FEED=<feed> F=pool/noble/main/amd64/gnome-themes-extra-data/gnome-themes-extra-data_3.28-2ubuntu5_amd64.deb # Filename from binary-amd64 for i in 1 2 3; do curl -s -o /dev/null -w "%{http_code} ttfb=%{time_starttransfer}s\n" "$R/debian/$FEED/$F" curl -s "$R/api/packages/$FEED/versions?name=gnome-themes-extra-data" # downloads stays 0, published changes done # Repeat with .../main/all/.../..._all.deb: served from cache, downloads incrementsWe also tried publishing the original arch=all .deb as a local package (
PUT /debian/<feed>/upload/noble/main). ProGet stores it as arch=all, and the next download at the amd64 path overwrites it with the connector copy.Expected
When an arch=all package is listed in binary-amd64, its Filename should point to the cached arch=all copy (
.../all/..._all.deb). Alternatively, the amd64 path should resolve to the cached arch=all package instead of fetching it again.Impact
About 21% of
noble-updates/main/binary-amd64(1,547 of 7,444 packages, about 13 GB) is arch=all, including linux-firmware, perl-modules and many python3 packages. Each of these is refetched on every apt download. None of the 2026.3–2026.14 release notes seemed to cover this. PG-3402, PG-3342 and PG-3417 looked related, but 2026.14 behaves the same.Thanks!
-
Hi @ThitLonGiaCay ,
Thanks for the detailed information on this; I was able to reproduce the issue and believe I understand what's happening.
Based on my initial analysis of the code, it looks like we make the assumption that all packages in upstream repository's architecture-specific index (i.e. amd64) will have that architecture. As such, the remote version appears to be
3.28-2ubuntu5?arch=amd64&distro=noble. We can see this visually when browsing the constructed filenames:
However, when the package is installed in the feed via caching, the version from the
.debpackage's manifest file is used. As you noticed, that specifiesArchitecture: all, which means the package is installed as3.28-2ubuntu5?arch=all&distro=noble. This is a different version, and we can see this cached package installed next to the non-cached packages:
Long story short, this appears to be a long-standing issue and will require some changes to how we handle indexes. As it turns out, we're already planning on some changes to Debian's index handling... so it might make sense to do it as part of that instead of in the current system.
We will fix this via PG-3440 and will evaluate the best approach for this in an upcoming meeting with our team,
Thanks,
Alana
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login