🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.debian.user
Article #567

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

#567
From: Greg Wooledge
Date: Tue, 17 Nov 2026 04:00
18 lines
2967 bytes
On Tue, Nov 17, 2026 at 04:34:48 +0100, Vincent Lefevre wrote:
> 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.

Amusing.  Of course, all Trixie kernels have a "3" in their version
strings (from the "deb13" bit), so they all match the NeverAutoRemove
regex.

You might want to add a note about this discover to
<https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1145185>
Technical Details
Message-ID: <O0iwq-cnHS-1@gated-at.bofh.it>
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod
References: <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> <O0id3-cnAf-1@gated-at.bofh.it>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod
From: Greg Wooledge <greg@wooledge.org>
Newsgroups: linux.debian.user
Subject: Re: APT::NeverAutoRemove::KernelCount "3"; Not quite working: I get  more than three kernels
Date: Tue, 17 Nov 2026 05:00:02 +0100
Message-ID: <O0iwq-cnHS-1@gated-at.bofh.it>
References: <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> <O0id3-cnAf-1@gated-at.bofh.it>
X-Original-To: debian-user@lists.debian.org
X-Mailbox-Line: From debian-user-request@lists.debian.org  Tue Nov 17 03:53:58 2026
Old-Return-Path: <greg@wooledge.org>
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: using cached result; rate: -4.6
Mail-Followup-To: debian-user@lists.debian.org
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
X-Mailing-List: <debian-user@lists.debian.org> archive/latest/832955
List-ID: <debian-user.lists.debian.org>
List-URL: <https://lists.debian.org/debian-user/>
List-Archive: https://lists.debian.org/msgid-search/avvPrqg9-bUpVzIE@wooledge.org
Approved: robomod@news.nic.it
Lines: 18
Organization: linux.* mail to news gateway
Sender: robomod@news.nic.it
X-Original-Date: Mon, 16 Nov 2026 22:53:18 -0500
X-Original-Message-ID: <avvPrqg9-bUpVzIE@wooledge.org>
X-Original-References: <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>
 <20261117033448.GD803748@qaa.vinc17.org>