Package: python3-apt Version: 2.2.1 Severity: important X-Debbugs-Cc: matl...@matlink.fr
-- System Information: Debian Release: 11.5 APT prefers stable-updates APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 'stable') Architecture: amd64 (x86_64) Kernel: Linux 5.10.0-18-amd64 (SMP w/2 CPU threads) Locale: LANG=C.UTF-8, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set Shell: /bin/sh linked to /usr/bin/dash Init: systemd (via /run/systemd/system) LSM: AppArmor: enabled Versions of packages python3-apt depends on: ii distro-info-data 0.51+deb11u2 ii libapt-pkg6.0 2.2.4 ii libc6 2.31-13+deb11u4 ii libgcc-s1 10.2.1-6 ii libstdc++6 10.2.1-6 ii python-apt-common 2.2.1 ii python3 3.9.2-3 Versions of packages python3-apt recommends: ii iso-codes 4.6.0-1 ii lsb-release 11.1.0 Versions of packages python3-apt suggests: ii apt 2.2.4 pn python-apt-doc <none> pn python3-apt-dbg <none> -- no debconf information When some debian repositories are unreachable, python3-apt update cache functionality throws an unknown exception 'Failed to update apt cache: unknown reason'. This is hardly catchable. However, apt update returns exit code 0 in the same situation. Behaviors diverge which causes issues for higher level programs like ansible.