Package: apt-cacher-ng Version: 3.6.3-1 Severity: normal I think apt-cacher-ng doesn't close downloaded file properly under heavy stress and leaves truncated damaged package file in its cache. Its size is smaller than the size listed in *.head file. So apt-cacher-ng knows it is truncated or under download.
Let me describe situation with some screen grubs. I experience problem when many package files are downloaded during the KVM guest system to install GUI tasks (GNOME and KDE). Host side is started to use this cache but don't see this problem so far. The virt-manager's message from guest's APT seem to indicate hash is broken but file size is OK. As I checked cached packages on the host system, one by the apt-cacher-ng and another by manual download, situation apears to be a bit different. Basically, apt-cacher-ng is truncating downloaded file in its cache. Clearly package in apt-cache-ng's cache is much shorter. APT error message was deceptive. I did vimdiff of the hexdump to see it was really truncation at one point. Of course setting --fix-missing will allow me to move on but that's on broken package data. I am on a fairly nice optical_to_room + wifi_to_pc fast connection. So such frequent and almost predictable data loss is unthinkable. My WS uses fast nvme SSD and all data are on btrfs. I will attach 3 screen captures and log in the follow up -- Package-specific info: -- System Information: Debian Release: bullseye/sid APT prefers testing APT policy: (500, 'testing') Architecture: amd64 (x86_64) Kernel: Linux 5.10.0-5-amd64 (SMP w/12 CPU threads) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US:en Shell: /bin/sh linked to /usr/bin/dash Init: systemd (via /run/systemd/system) LSM: AppArmor: enabled Versions of packages apt-cacher-ng depends on: ii adduser 3.118 ii debconf [debconf-2.0] 1.5.75 ii dpkg 1.20.7.1 ii libbz2-1.0 1.0.8-4 ii libc6 2.31-11 ii libevent-2.1-7 2.1.12-stable-1 ii libevent-pthreads-2.1-7 2.1.12-stable-1 ii libgcc-s1 10.2.1-6 ii liblzma5 5.2.5-2 ii libssl1.1 1.1.1k-1 ii libstdc++6 10.2.1-6 ii libsystemd0 247.3-3 ii libwrap0 7.6.q-31 ii lsb-base 11.1.0 ii zlib1g 1:1.2.11.dfsg-2 Versions of packages apt-cacher-ng recommends: ii ca-certificates 20210119 Versions of packages apt-cacher-ng suggests: ii avahi-daemon 0.8-5 ii doc-base 0.11.1 ii libfuse2 2.9.9-5 -- Configuration Files: /etc/apt-cacher-ng/security.conf [Errno 13] Permission denied: '/etc/apt-cacher-ng/security.conf' -- debconf information: * apt-cacher-ng/cachedir: keep * apt-cacher-ng/bindaddress: keep * apt-cacher-ng/gentargetmode: No automated setup * apt-cacher-ng/proxy: keep * apt-cacher-ng/tunnelenable: true * apt-cacher-ng/port: keep

