Bug#1085880: python3-apt: Package.marked_keep not working
Package: python3-apt
Version: 2.6.0
Severity: normal
Dear Maintainer,
The Package.marked_keep seem not working properly: all packages are marked to
keep even if it's not the case.
Ex (on Debian Bookworm, v2.6.0):
$ apt-mark showhold
terraform
$ python3
Python 3.11.2 (main, May 2 2024, 11:59:08) [GCC 12.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from apt.cache import Cache
>>> cache = Cache()
>>> pkg = cache["apache2"]
>>> pkg.marked_keep
True
I also reproduced this bug on bullseye (v2.2.1) & trixie (v2.9.0+b1).
-- System Information:
Debian Release: 12.7
APT prefers stable
APT policy: (990, 'stable'), (500, 'stable-security')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 6.1.0-9-amd64 (SMP w/8 CPU threads; PREEMPT)
Kernel taint flags: TAINT_USER, TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.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.58+deb12u2
ii libapt-pkg6.0 2.6.1
ii libc6 2.36-9+deb12u8
ii libgcc-s1 12.2.0-14
ii libstdc++6 12.2.0-14
ii python-apt-common 2.6.0
ii python3 3.11.2-1+b1
Versions of packages python3-apt recommends:
ii iso-codes 4.15.0-1
ii lsb-release 12.0-1
Versions of packages python3-apt suggests:
ii apt 2.6.1
pn python-apt-doc <none>
-- debconf-show failed
Reply to: