Package: apt
Version: 3.3.3
Severity: normal

When the "3.0" solver is selected, apt-get and libapt-pkg do not respect
APT::Ignore-Hold=1 (equivalently for the command line tools,
--ignore-hold).  The "internal" solver does respect it.

The following does NOT work as expected (held packages are still
considered held):

  $ apt-get -s upgrade --solver 3.0 -o 'APT::Ignore-Hold=1'
  $ apt-get -s upgrade --solver 3.0 --ignore-hold
  $ apt-get -s upgrade -o 'APT::Ignore-Hold=1'
  $ apt-get -s upgrade --ignore-hold

The following DOES work as expected (held packages are considered not
held for the purpose of this invocation):

  $ apt-get -s upgrade --solver internal -o 'APT::Ignore-Hold=1'
  $ apt-get -s upgrade --solver internal --ignore-hold

The same behaviour is observed if I use libapt-pkg via the python
binding.

Note:  I do not want apt to just fall back to the "internal" solver when
"APT::Ignore-Hold" is in effect because I want the sometimes-superior
resolution produced by the "3.0" solver.  I want the "3.0" resolution
with the ability to temporarily ignore the "held" status of packages.

-- Package-specific info:

-- (no /etc/apt/preferences present) --


-- (no /etc/apt/sources.list present) --


-- (/etc/apt/sources.list.d/debian.sources present, but not submitted) --


-- System Information:
Debian Release: forky/sid
  APT prefers stable-security
  APT policy: (500, 'stable-security'), (500, 'unstable'), (500, 'testing'), 
(500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 6.12.101+deb13-amd64 (SMP w/4 CPU threads; PREEMPT)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_GB:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages apt depends on:
ii  adduser                 3.158
ii  base-passwd             3.6.8
ii  debian-archive-keyring  2025.1
ii  libapt-pkg7.0           3.3.3
ii  libc6                   2.43-3
ii  libgcc-s1               16.2.0-1
ii  libseccomp2             2.6.1-1
ii  libssl3t64              3.6.3-1
ii  libstdc++6              16.2.0-1
ii  libsystemd0             261.2-1
ii  sqv                     1.4.0-1

Versions of packages apt recommends:
ii  ca-certificates  20260601

Versions of packages apt suggests:
pn  apt-doc                      <none>
pn  aptitude | synaptic | wajig  <none>
ii  dpkg-dev                     1.23.7
ii  gnupg                        2.4.9-7
ii  powermgmt-base               1.39

-- no debconf information

Reply via email to