#1136651 apt-cacher: Fails to upgrade from Trixie to Forky at ~ 14%

Package:
apt-cacher
Source:
apt-cacher
Submitter:
Helge Kreutzmann
Date:
2026-05-25 07:13:03 UTC
Severity:
normal
Tags:
#1136651#5
Date:
2026-05-14 11:45:08 UTC
From:
To:
I've used apt-cacher for the last years, amongst others during the
development of Trixie. I stayed on Trixie until today, now I want to
upgrade to Forky.

I update apt.source.d/ accordingly and the first 14% work as expected.
But then the download stalls:
…
  libavformat62            libgvplugin-gd8            libntlm0-dev                     librust-bumpalo-dev          libtextutils-cmark-rc-copy0             openjdk-25-jdk                   yad
  libavutil60              libgvplugin-pango8         libobjc-15-dev                   librust-bytemuck-derive-dev  libtheora1                              openjdk-25-jdk-headless

Vorgeschlagene Pakete:
  gcc-15-locales   gcc-15-doc       | brz          libcuda1           libbluray-bdj  libdbix-class-perl          libstdc++-15-doc        linux-doc-7.0      visualvm            | fonts-wqy-zenhei   python3.14-venv
  cpp-15-doc       gcc-15-multilib  mercurial      libnvcuvid1        fltk-options   libayatana-appindicator3-1  gstreamer1.0-alsa       openjdk-25-demo    libnss-mdns         fonts-indic          python3.14-doc
  g++-15-multilib  bzr              guile-3.0-doc  libnvidia-encode1  gpsd           | libappindicator3-1        debian-kernel-handbook  openjdk-25-source  fonts-wqy-microhei  python-tinycss2-doc  tix

Empfohlene Pakete:
  libheif-plugin-aomenc  | libheif-plugin-rav1e  | libheif-plugin-svtenc  plasma-activities-bin  postgresql-18-jit

ENTFERNE:
  libatk-bridge2.0-dev   libcairo2-dev          libgnutls-openssl27t64  libharfbuzz-dev              libnode115          libpango1.0-dev       libreoffice-qt5                  libxmlsec1t64        python3-fs
  libatk1.0-dev          libcloudproviders-dev  libgstreamer1.0-dev     libjxl0.9                    libnotify-dev       libplasma6            librust-rand-core+getrandom-dev  libxmlsec1t64-nss    qml-module-qtwebkit
  libatspi2.0-dev        libgdk-pixbuf-2.0-dev  libgtk-3-dev            libkpmcore12                 libonnx1t64         libplasmaactivities6  librust-rand-core+serde-dev      mesa-va-drivers
  libavcodec60           libgio-2.0-dev         libgusb2                libmagickcore-6.q16-6-extra  libonnxruntime1.21  libplasmaquick6       librust-rand-core+std-dev        mesa-vdpau-drivers
  libbrasero-media3-dev  libglib2.0-dev         libgvc6                 libmount-dev                 libopenexr-3-1-30   libqt5webkit5         libselinux1-dev                  plasma5-integration

Zusammenfassung:
  Aktualisiere: 3530, Installiere: 230, Entferne: 42, Aktualisiere nicht: 0
  Herunterlade-Größe: 4.317 MB / 4.984 MB
  Benötigter Platz: 2.070 MB / 3.682 MB verfügbar

Fortfahren? [J/n]
Ign:1 http://127.0.0.1:9999/ftp.de.debian.org/debian forky/main amd64 libspa-0.2-bluetooth amd64 1.6.4-1
Ign:2 http://127.0.0.1:9999/ftp.de.debian.org/debian forky/main amd64 libatopology2t64 amd64 1.2.15.3-1+b1
Ign:3 http://127.0.0.1:9999/ftp.de.debian.org/debian forky/main amd64 libebur128-1 amd64 1.2.6-2+b2
Ign:4 http://127.0.0.1:9999/ftp.de.debian.org/debian forky/main amd64 libfftw3-single3 amd64 3.3.10-2+b2
Ign:5 http://127.0.0.1:9999/ftp.de.debian.org/debian forky/main amd64 libserd-0-0 amd64 0.32.8-1
Ign:6 http://127.0.0.1:9999/ftp.de.debian.org/debian forky/main amd64 libzix-0-0 amd64 0.8.0-1+b1
Ign:7 http://127.0.0.1:9999/ftp.de.debian.org/debian forky/main amd64 libsord-0-0 amd64 0.16.22-1
Ign:8 http://127.0.0.1:9999/ftp.de.debian.org/debian forky/main amd64 libsratom-0-0 amd64 0.6.22-1
Ign:9 http://127.0.0.1:9999/ftp.de.debian.org/debian forky/main amd64 liblilv-0-0 amd64 0.26.4-1
Ign:10 http://127.0.0.1:9999/ftp.de.debian.org/debian forky/main amd64 libmysofa1 amd64 1.3.3+dfsg-1+b2
Ign:11 http://127.0.0.1:9999/ftp.de.debian.org/debian forky/main amd64 libcpuinfo0 amd64 0.0~git20250905.877328f-1+b1
Ign:1 http://127.0.0.1:9999/ftp.de.debian.org/debian forky/main amd64 libspa-0.2-bluetooth amd64 1.6.4-1
Ign:2 http://127.0.0.1:9999/ftp.de.debian.org/debian forky/main amd64 libatopology2t64 amd64 1.2.15.3-1+b1
Ign:3 http://127.0.0.1:9999/ftp.de.debian.org/debian forky/main amd64 libebur128-1 amd64 1.2.6-2+b2
Ign:4 http://127.0.0.1:9999/ftp.de.debian.org/debian forky/main amd64 libfftw3-single3 amd64 3.3.10-2+b2
Ign:5 http://127.0.0.1:9999/ftp.de.debian.org/debian forky/main amd64 libserd-0-0 amd64 0.32.8-1
Ign:6 http://127.0.0.1:9999/ftp.de.debian.org/debian forky/main amd64 libzix-0-0 amd64 0.8.0-1+b1
Ign:7 http://127.0.0.1:9999/ftp.de.debian.org/debian forky/main amd64 libsord-0-0 amd64 0.16.22-1
Ign:8 http://127.0.0.1:9999/ftp.de.debian.org/debian forky/main amd64 libsratom-0-0 amd64 0.6.22-1
Ign:9 http://127.0.0.1:9999/ftp.de.debian.org/debian forky/main amd64 liblilv-0-0 amd64 0.26.4-1
Ign:10 http://127.0.0.1:9999/ftp.de.debian.org/debian forky/main amd64 libmysofa1 amd64 1.3.3+dfsg-1+b2
Ign:11 http://127.0.0.1:9999/ftp.de.debian.org/debian forky/main amd64 libcpuinfo0 amd64 0.0~git20250905.877328f-1+b1
Ign:1 http://127.0.0.1:9999/ftp.de.debian.org/debian forky/main amd64 libspa-0.2-bluetooth amd64 1.6.4-1
Ign:2 http://127.0.0.1:9999/ftp.de.debian.org/debian forky/main amd64 libatopology2t64 amd64 1.2.15.3-1+b1
Ign:3 http://127.0.0.1:9999/ftp.de.debian.org/debian forky/main amd64 libebur128-1 amd64 1.2.6-2+b2


This is reproducible, if I change mirrors. If I bypass apt-cacher, i.e. enter the Debian mirror
directly, the download happens.

Running
systemctl restart apt-cacher.service
does not change the behaviour.

In /var/log/apt-cacher/access.log I see
Thu May 14 12:33:08 2026|1441264|::ffff:127.0.0.1|HIT|150577|ftp.de.debian.org_debian_dists_forky_InRelease
Thu May 14 12:33:08 2026|1441264|::ffff:127.0.0.1|HIT|54124|ftp.de.debian.org_debian_dists_forky_contrib_source_by-hash_SHA256_cf121590fbb337e541163194ff6c65819655516638791076364a205a2fb718da
Thu May 14 12:33:08 2026|1441264|::ffff:127.0.0.1|HIT|10668828|ftp.de.debian.org_debian_dists_forky_main_source_by-hash_SHA256_77fa9e359a3cf6628867107d5de01a0997fd6095d6123031954a824c11d60ca5
Thu May 14 12:33:08 2026|1441264|::ffff:127.0.0.1|HIT|72752|ftp.de.debian.org_debian_dists_forky_non-free_source_by-hash_SHA256_50c42b891763b14e8269a33babe38fd7fc6f8db345f9930d3ecf703c790b4bcf
Thu May 14 12:33:08 2026|1441264|::ffff:127.0.0.1|HIT|9627212|ftp.de.debian.org_debian_dists_forky_main_binary-amd64_by-hash_SHA256_c08189ae351ef66fc051013b4d534cc471b239c47b02f36d9e381f827b75ecbd
Thu May 14 12:33:08 2026|1441264|::ffff:127.0.0.1|HIT|6410804|ftp.de.debian.org_debian_dists_forky_main_i18n_by-hash_SHA256_c752cec497af290abd930656ed998761ac0e6c62e5dfb32fe5ea9d877f6ca9d1
Thu May 14 12:33:08 2026|1441264|::ffff:127.0.0.1|HIT|1557881|ftp.de.debian.org_debian_dists_forky_main_i18n_by-hash_SHA256_2b4a9df50c5abb633009bd292123cd389c9a0fb585eac1568b47bfc0f8da1b85
Thu May 14 12:33:08 2026|1441264|::ffff:127.0.0.1|HIT|830|ftp.de.debian.org_debian_dists_forky_main_i18n_by-hash_SHA256_481a435ad350105b74c4972859c44f447b7a8b5edea0d42f6dd635792e00a461
Thu May 14 12:33:08 2026|1441264|::ffff:127.0.0.1|HIT|5130428|ftp.de.debian.org_debian_dists_forky_main_dep11_by-hash_SHA256_cab8c8afe07c44f78de798c10ae6b7beb91d3e03ee8452462386048f56fc690a
Thu May 14 12:33:08 2026|1441264|::ffff:127.0.0.1|HIT|3529386|ftp.de.debian.org_debian_dists_forky_main_dep11_by-hash_SHA256_98fc30d73f4579708a35a49b44ba1e71479a2cdf2d9116e4bbfc1c7a7126a702
Thu May 14 12:33:08 2026|1441264|::ffff:127.0.0.1|HIT|7038408|ftp.de.debian.org_debian_dists_forky_main_dep11_by-hash_SHA256_f57949565c4ebd05bd71da1ef5c70a84a2dbe75b4b63140f1c1ad2b9f39ee0bd
Thu May 14 12:33:09 2026|1441264|::ffff:127.0.0.1|HIT|37388324|ftp.de.debian.org_debian_dists_forky_main_by-hash_SHA256_d10debe419fe62638d6c54979ed42fa7d46becc76c69b4f8f70691e3aea8a7e0
Thu May 14 12:33:09 2026|1441264|::ffff:127.0.0.1|HIT|12705314|ftp.de.debian.org_debian_dists_forky_main_by-hash_SHA256_a663c5fb7a0be356549a90240bd2f856db82caea21a0147c49285955799a90a8
Thu May 14 12:33:09 2026|1441264|::ffff:127.0.0.1|HIT|53324|ftp.de.debian.org_debian_dists_forky_contrib_binary-amd64_by-hash_SHA256_f14562a867cc4549dfb3a8e66e856924e0d33d392c60085cb16d836834cdf966
Thu May 14 12:33:09 2026|1441264|::ffff:127.0.0.1|HIT|50384|ftp.de.debian.org_debian_dists_forky_contrib_i18n_by-hash_SHA256_354deeb0f1c42723aca9685572f3dffa44f99dd314bada079fbee42de2a2aafe
Thu May 14 12:33:09 2026|1441264|::ffff:127.0.0.1|HIT|47164|ftp.de.debian.org_debian_dists_forky_contrib_dep11_by-hash_SHA256_a8ddf550640cc38e879c680ea051caefd7acf4e7514a7428f34088b7177e836c
Thu May 14 12:33:09 2026|1441264|::ffff:127.0.0.1|HIT|57546|ftp.de.debian.org_debian_dists_forky_contrib_dep11_by-hash_SHA256_642cc711467fae1cd626b40f9190743d7d744ea23bf826a486a4e13993745b0b
Thu May 14 12:33:09 2026|1441264|::ffff:127.0.0.1|HIT|112838|ftp.de.debian.org_debian_dists_forky_contrib_dep11_by-hash_SHA256_e7946c0427bd386110d9020aaba10b097745265a93f2f6d199797d77252f8b69
Thu May 14 12:33:09 2026|1441264|::ffff:127.0.0.1|HIT|116714|ftp.de.debian.org_debian_dists_forky_contrib_by-hash_SHA256_c154f1c841a9237996e66cfbaf83000cbd4e3695939ae414515ea319a1fcb07a
Thu May 14 12:33:09 2026|1441264|::ffff:127.0.0.1|HIT|125152|ftp.de.debian.org_debian_dists_forky_contrib_by-hash_SHA256_14b79060494429909fa13ae5678a32dff460113b81538fb3135cdfbda47b36ad
Thu May 14 12:33:09 2026|1441264|::ffff:127.0.0.1|HIT|94836|ftp.de.debian.org_debian_dists_forky_non-free_binary-amd64_by-hash_SHA256_d3613a65363cf0431e49b55992983f11fb89b1b8647c4c649ff59150344b570d
Thu May 14 12:33:09 2026|1441264|::ffff:127.0.0.1|HIT|63580|ftp.de.debian.org_debian_dists_forky_non-free_i18n_by-hash_SHA256_d0ae296dd4c144b14bab288643d0d7b9b30758702ff9cb921aaea42e5d371d7b
Thu May 14 12:33:09 2026|1441264|::ffff:127.0.0.1|HIT|5944|ftp.de.debian.org_debian_dists_forky_non-free_dep11_by-hash_SHA256_8ec574875f8f768a88e7230cf04c3cfd65d41b71fc96d069b59da07b4d35aee8
Thu May 14 12:33:09 2026|1441264|::ffff:127.0.0.1|HIT|8364|ftp.de.debian.org_debian_dists_forky_non-free_dep11_by-hash_SHA256_0a8c765de1353b2c8a63e57706ac167e4fe5a7d5bbba686d414c28026a3d0023
Thu May 14 12:33:09 2026|1441264|::ffff:127.0.0.1|HIT|19690|ftp.de.debian.org_debian_dists_forky_non-free_dep11_by-hash_SHA256_7990b01c05b53e37f8aa6604be7d2ef0c9fa6b0b5563bb2b21a354cce4b6d97b
Thu May 14 12:33:09 2026|1441264|::ffff:127.0.0.1|HIT|53456|ftp.de.debian.org_debian_dists_forky_non-free_by-hash_SHA256_147b4cc681f7a5c539a9c31f12fe3686262c6d5b8d0a1a2fab433201e835417a
Thu May 14 12:33:09 2026|1441264|::ffff:127.0.0.1|HIT|839874|ftp.de.debian.org_debian_dists_forky_non-free_by-hash_SHA256_4f6fc9342ae976954d04446910012d963d571d3779764bca7778bb16bdeffbb2
Thu May 14 12:41:23 2026|1441766|::ffff:127.0.0.1|NOTMOD|0|ftp.de.debian.org_debian_dists_forky_InRelease

error.log says:
Thu May 14 12:19:12 2026|info [1440219]: Forked listener 1440220
Thu May 14 12:36:20 2026|warn [1440833]: Warning: unable to close filehandle __ANONIO__ properly: Bad file descriptor at /usr/sbin/apt-cacher line 1555.
Thu May 14 12:43:23 2026|warn [1441502]: Warning: unable to close filehandle __ANONIO__ properly: Bad file descriptor at /usr/sbin/apt-cacher line 1555.
Thu May 14 12:53:29 2026|warn [1442185]: Warning: unable to close filehandle __ANONIO__ properly: Bad file descriptor at /usr/sbin/apt-cacher line 1555.
Thu May 14 12:53:29 2026|warn [1442185]: Warning: unable to close filehandle __ANONIO__ properly: Bad file descriptor at /usr/sbin/apt-cacher line 1555.

Howver, theses lines  appears for older invocations as well, when I
was getting security updates without problems.

There is enouugh space in the cacher directory as well as in /var/cache/apt/archives.

In the system log I get:
2026-05-14T12:19:11.966165+02:00 twentytwo systemd[1]: apt-cacher.service: Unit process 1436036 (apt-cacher) remains running after unit stopped.
2026-05-14T12:19:11.967237+02:00 twentytwo systemd[1]: apt-cacher.service: Found left-over process 1436036 (apt-cacher) in control group while starting unit. Ignoring.
2026-05-14T12:19:11.967295+02:00 twentytwo systemd[1]: apt-cacher.service: This usually indicates unclean termination of a previous run, or service implementation deficiencies.

I will soon switch to direct download, as I scheduled my time today for the upgrade.

#1136651#10
Date:
2026-05-14 12:58:58 UTC
From:
To:
Hello maintainer,
I let it runnning for some time, and now it continues, but very
slowly and with several misses. It's at 23%. I leave it running for
some time.

Greetings

           Helge

#1136651#13
Date:
2026-05-14 18:19:48 UTC
From:
To:
Helge,

Thanks for this.

Just to be sure I understand correctly, the apt-cacher server is on the same box that
is being upgraded?

Did you upgrade  apt-cacher to forky first?

This suggests not -- it is the trixie version

Other than the addition of a systemd unit, there are no changes from trixie to
forky. I suppose something else might have changed to break apt-cacher.

I suggest upgrade apt-cacher before apt upgrade.

Does that help?

Mark

#1136651#20
Date:
2026-05-14 19:13:25 UTC
From:
To:
Hello Mark,
Am Thu, May 14, 2026 at 07:19:48PM +0100 schrieb Mark Hindley:

Yes. As in the past, I used this setup (on different hardware) for the
last ~ 20 years, but I don't remember off-hand when I had to switch
from apt-cacher-ng to apt-cacher.

No.

Yes

Well, sometime in the afternoon, after several restarts, it suddently
started downloading all packages. Since I ran out of time today (I
expected the download to be a matter of minutes, not hours), I will
perform the update probably on Sunday.

If you need any further diagnostics, log files, etc., I can provide
them until then.

Thanks for your attention.

Greetings

          Helge

#1136651#25
Date:
2026-05-25 07:09:59 UTC
From:
To:
Hello Mark,
Am Thu, May 14, 2026 at 07:19:48PM +0100 schrieb Mark Hindley:

I managed to run the upgrade with the old version, i.e. upgrade
apt-cacher along the rest of the machine.

If there is any further information you need, please let me know. Now
I'm running testing and follow any further upload you make for Forky.

Greetings

         Helge