Inedo Community Forums Forums
    • Recent
    • Tags
    • Popular
    • Login

    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)

    Scheduled Pinned Locked Moved Support
    2 Posts 2 Posters 9 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • T Offline
      ThitLonGiaCay
      last edited by

      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: all packages are never served from the feed's cache when apt downloads them. Every download fetches the package from the connector again. Architecture: amd64 packages 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 distribution noble and components main 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/Packages lists 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.deb
      

      apt 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 published date,
      • leaves downloads at 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.deb is served from cache: TTFB about 0.06 s, downloads goes 1, 2, 3, and published stays the same. The mixed paths (.../amd64/..._all.deb and .../all/..._amd64.deb) return 404.

      On a new feed, binary-all/Packages returns 404 and Release says Architectures: amd64 i386. After an arch=all package has been cached, binary-all/Packages appears with the correct .../all/..._all.deb Filename, and Release changes to Architectures: all amd64 i386. binary-amd64/Packages keeps the amd64 Filename for the same package.

      For comparison, upstream Ubuntu lists arch=all packages only in binary-amd64, with an _all.deb Filename.

      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 increments
      

      We 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!

      atrippA 1 Reply Last reply Reply Quote
      • atrippA Offline
        atripp inedo-engineer @ThitLonGiaCay
        last edited by atripp

        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:

        9dfea0f6-af53-4100-822d-274e84642bf4-image.jpeg

        However, when the package is installed in the feed via caching, the version from the .deb package's manifest file is used. As you noticed, that specifies Architecture: all, which means the package is installed as 3.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:

        1e9f6ccd-1e37-4c9c-8b4d-7582b7490249-image.jpeg

        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

        1 Reply Last reply Reply Quote

        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
        • 1 / 1
        • First post
          Last post
        Inedo Website Home • Support Home • Code of Conduct • Forums Guide • Documentation