🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.debian.user
Article #564

Re: APT::NeverAutoRemove::KernelCount "3"; Not quite working: I get more than three kernels

#564
From: Vincent Lefevre
Date: Tue, 17 Nov 2026 03:40
28 lines
3414 bytes
On 2026-11-17 04:18:55 +0100, Vincent Lefevre wrote:
> On 2026-11-16 13:58:11 -0600, David Wright wrote:
> > It would be more realistic to try out Vincent's suggestion by
> > testing with APT::NeverAutoRemove::KernelCount "N"; where N=0…6
> > in turn.
> 
> Yes. And the current code (3.3.7) in apt-pkg/algorithms.cc is
[...]

No need to do any test: Mistral AI found a bug when I asked to
look at this discussion, starting at

  https://lists.debian.org/debian-user/2026/11/msg00232.html

It says that there is a configuration namespace collision:
APT::NeverAutoRemove is simultaneously a scalar option scope
(holding KernelCount) and a list of regexes that protects packages
from autoremove. Setting KernelCount "3" injects the string 3 into
that regex list.

Full information:

  https://chat.mistral.ai/work/80af5892-0370-4bff-8748-652e0fe6666c

-- 
Vincent Lefèvre <vincent@vinc17.net> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / Pascaline project (LIP, ENS-Lyon)
Technical Details
Message-ID: <O0id3-cnAf-1@gated-at.bofh.it>
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!news.corradoroberto.it!diesel.cu.mi.it!bofh.it!news.nic.it!robomod
References: <NZyDf-bXfH-5@gated-at.bofh.it> <NZAF3-bYAN-1@gated-at.bofh.it> <NZIMh-c35e-3@gated-at.bofh.it> <NZKEs-c49T-83@gated-at.bofh.it> <NZMPU-c5zY-19@gated-at.bofh.it> <NZNsB-c5QC-7@gated-at.bofh.it> <O03e1-cf3m-7@gated-at.bofh.it> <O08dI-chPl-9@gated-at.bofh.it> <O0b1T-cjra-1@gated-at.bofh.it> <O0hTH-cnsG-1@gated-at.bofh.it>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!news.corradoroberto.it!diesel.cu.mi.it!bofh.it!news.nic.it!robomod
From: Vincent Lefevre <vincent@vinc17.net>
Newsgroups: linux.debian.user
Subject: Re: APT::NeverAutoRemove::KernelCount "3"; Not quite working: I get  more than three kernels
Date: Tue, 17 Nov 2026 04:40:01 +0100
Message-ID: <O0id3-cnAf-1@gated-at.bofh.it>
References: <NZyDf-bXfH-5@gated-at.bofh.it> <NZAF3-bYAN-1@gated-at.bofh.it> <NZIMh-c35e-3@gated-at.bofh.it> <NZKEs-c49T-83@gated-at.bofh.it> <NZMPU-c5zY-19@gated-at.bofh.it> <NZNsB-c5QC-7@gated-at.bofh.it> <O03e1-cf3m-7@gated-at.bofh.it> <O08dI-chPl-9@gated-at.bofh.it> <O0b1T-cjra-1@gated-at.bofh.it> <O0hTH-cnsG-1@gated-at.bofh.it>
X-Mailbox-Line: From debian-user-request@lists.debian.org  Tue Nov 17 03:35:06 2026
Old-Return-Path: <vincent@vinc17.net>
X-Amavis-Spam-Status: No, score=-1.9 tagged_above=-10000 required=5.3
 tests=[BAYES_00=-1.9] autolearn=ham autolearn_force=no
X-Policyd-Weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 CL_IP_EQ_FROM_MX=-3.1; rate: -4.6
Mail-Followup-To: debian-user@lists.debian.org
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
X-Mailer-Info: https://www.vinc17.net/mutt/
User-Agent: Mutt/2.4.3+67 (b2844dd7) vl-188789 (2026-11-11)
X-Mailing-List: <debian-user@lists.debian.org> archive/latest/832952
List-ID: <debian-user.lists.debian.org>
List-URL: <https://lists.debian.org/debian-user/>
List-Archive: https://lists.debian.org/msgid-search/20261117033448.GD803748@qaa.vinc17.org
Approved: robomod@news.nic.it
Lines: 28
Organization: linux.* mail to news gateway
Sender: robomod@news.nic.it
X-Original-Date: Tue, 17 Nov 2026 04:34:48 +0100
X-Original-Message-ID: <20261117033448.GD803748@qaa.vinc17.org>
X-Original-References: <avkeN-Tw0ppxgzqc@wooledge.org>
 <20261114220535.588a318e@peregrine.localdomain>
 <avm2v9BeMGRZx__7@wooledge.org>
 <20261115084323.6000e2dc@peregrine.localdomain>
 <avn1HIGw1_1mb5g_@argo.corp>
 <20261115114153.4c463e2b@hawk.localdomain>
 <20261116113011.GE670644@qaa.vinc17.org>
 <b1c795f330751c4af0240ab6357cca96@charlescurley.com>
 <avtgU6DyhaoMaA_7@argo.corp>
 <20261117031855.GC803748@qaa.vinc17.org>