Package: apt-cacher-ng
Version: 3.2-2
Severity: grave
Justification: renders package unusable

Dear maintainer,

apt-cacher-ng stopped working recently when used to cache the debian/sid
suite. It reports the following error:

| An error occurred while reading this file, some contents may have been 
ignored. Tag
| Parsing metadata in deb/dists/sid/main/binary-arm64/Packages.xz

I have tracked down this issue to a too small value of BUFSIZEMAX. The
Packages file in sid now contains lines that are way longer than before
and thus this variable needs to get adjusted:

| $ wget -q -O - 
http://ftp.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | xzcat 
| wc -L
| 59936
| $ wget -q -O - 
http://ftp.debian.org/debian/dists/sid/main/binary-amd64/Packages.xz | xzcat | 
wc -L
| 149619

I have found that doubling the value to 32*4096 is enough, but it might
be safer to double it to 64*4096 to be able to cope with further
increase.

Regards,
Aurelien

-- System Information:
Debian Release: 10.1
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 4.19.0-5-amd64 (SMP w/4 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8), 
LANGUAGE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Reply via email to