🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.debian.user
Article #557

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

#557
From: David Wright
Date: Mon, 16 Nov 2026 20:00
43 lines
5958 bytes
On Mon 16 Nov 2026 at 10:21:46 (-0600), charlescurley@charlescurley.com wrote:
> On 2026-11-16 05:30, Vincent Lefevre wrote:
> > On 2026-11-15 11:41:53 -0700, Charles Curley wrote:
> > > root@peregrine:~# apt-get -s --purge autoremove
> > > Reading package lists... Done
> > > Building dependency tree... Done
> > > Reading state information... Done
> > > 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
> > 
> > If you remove your
> > 
> >   APT::NeverAutoRemove::KernelCount "3";
> > 
> > setting, does this change anything?
> > 
> > I'm wondering whether APT::NeverAutoRemove::KernelCount is buggy
> > when explicitly set to any value.
> 
> If I remove it, I get:
> 
> root@peregrine:~# apt -s upgrade
> 
> The following packages were automatically installed and are no longer
> required:
>   linux-image-6.12.111+deb13-amd64  linux-image-6.12.113+deb13-amd64
> linux-image-6.12.115+deb13.1-amd64
> Use 'apt autoremove' to remove them.
> 
> Summary:
>   Upgrading: 0, Installing: 0, Removing: 0, Not Upgrading: 0
> root@peregrine:~#
> 
> As I have five kernels on that machine, that looks reasonable to me.

Yes, but that's just testing the default regime that most people here
probably run under: the two most recent kernels are left installed.

It would be more realistic to try out Vincent's suggestion by
testing with APT::NeverAutoRemove::KernelCount "N"; where N=0…6
in turn.

Cheers,
David.
Technical Details
Message-ID: <O0b1T-cjra-1@gated-at.bofh.it>
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srv.newsdeef.eu!news.hispagatos.org!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod
References: <NZvYJ-bW04-11@gated-at.bofh.it> <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>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srv.newsdeef.eu!news.hispagatos.org!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod
From: David Wright <deblis@lionunicorn.co.uk>
Newsgroups: linux.debian.user
Subject: Re: APT::NeverAutoRemove::KernelCount "3"; Not quite working: I get  more than three kernels
Date: Mon, 16 Nov 2026 21:00:01 +0100
Message-ID: <O0b1T-cjra-1@gated-at.bofh.it>
References: <NZvYJ-bW04-11@gated-at.bofh.it> <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>
X-Mailbox-Line: From debian-user-request@lists.debian.org  Mon Nov 16 19:58:34 2026
Old-Return-Path: <nobody@lionunicorn.co.uk>
X-Amavis-Spam-Status: No, score=-2.098 tagged_above=-10000 required=5.3
 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,
 DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=0.001,
 RCVD_IN_MSPIKE_WL=0.001] autolearn=ham autolearn_force=no
X-Policyd-Weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 CL_IP_EQ_HELO_IP=-2 (check from: .lionunicorn. - helo: .bisque.cedar.relay.mailchannels. - helo-domain: .mailchannels.)  FROM/MX_MATCHES_NOT_HELO(DOMAIN)=0 FROM_NBDY_ANON=1.17; rate: -2.33
X-Sender-ID: thundermail|x-authsender|david@lionunicorn.co.uk
X-Sender-ID: thundermail|x-authsender|david@lionunicorn.co.uk
X-Mc-Relay: Junk
X-Mailchannels-Senderid: thundermail|x-authsender|david@lionunicorn.co.uk
X-Mailchannels-Auth-ID: thundermail
X-Fumbling-Abortive: 0b8369027b3aa1c4_1794859097861_1961892970
X-Mc-Loop-Signature: 1794859097861:2898052391
X-Mc-Ingress-Time: 1794859097861
Authentication-Results: cloud225.thundercloud.uk;
        spf=pass (sender IP is 24.255.218.34) smtp.mailfrom=nobody@lionunicorn.co.uk smtp.helo=argo.corp
Received-Spf: pass (cloud225.thundercloud.uk: connection is authenticated)
Reply-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-Ppp-Message-ID: 
 <179485909541.552600.13898035382246401603@cloud225.thundercloud.uk>
X-Ppp-Vhost: lionunicorn.co.uk
X-Rspamd-Queue-ID: 4jSzF34FVQzGnsf
X-Rspamd-Server: mailclean11
X-Rspamd-Action: no action
X-Spamd-Result: default: False [2.60 / 999.00];
	REPLYTO_EQ_TO_ADDR(2.00)[];
	ENVFROM_SERVICE_ACCT(1.00)[];
	DMARC_POLICY_ALLOW_WITH_FAILURES(-0.50)[];
	FORGED_SENDER(0.30)[deblis@lionunicorn.co.uk,nobody@lionunicorn.co.uk];
	ONCE_RECEIVED(0.20)[];
	MIME_GOOD(-0.10)[text/plain];
	R_DKIM_ALIGNED(-0.10)[strict];
	MX_GOOD(-0.10)[mail.lionunicorn.co.uk];
	REPLYTO_MX_GOOD(-0.10)[bendel.debian.org];
	FREEMAIL_ENVRCPT(0.00)[hotmail.co.uk];
	TO_MATCH_ENVRCPT_ALL(0.00)[];
	R_DKIM_ALLOW(0.00)[lionunicorn.co.uk:s=default];
	ARC_NA(0.00)[];
	UWH_IDENTITY(0.00)[1|eea77228e443b61f|t=169|r=0|m=postfix|n=18|h=pppm:1:16/1+pppv:1:17/0|f=nv];
	MIME_TRACE(0.00)[0:+];
	RCPT_COUNT_ONE(0.00)[1];
	DMARC_POLICY_ALLOW(0.00)[lionunicorn.co.uk,none];
	DKIM_TRACE(0.00)[lionunicorn.co.uk:+];
	RCVD_TLS_ALL(0.00)[];
	R_SPF_SOFTFAIL(0.00)[~all];
	FROM_NEQ_ENVFROM(0.00)[deblis@lionunicorn.co.uk,nobody@lionunicorn.co.uk];
	FROM_HAS_DN(0.00)[];
	REPLYTO_DOM_NEQ_FROM_DOM(0.00)[];
	TO_DN_NONE(0.00)[];
	ASN(0.00)[asn:34931, ipnet:149.255.56.0/22, country:GB];
	RCVD_VIA_SMTP_AUTH(0.00)[];
	MISSING_XM_UA(0.00)[];
	RCVD_COUNT_ONE(0.00)[1];
	HAS_REPLYTO(0.00)[debian-user@lists.debian.org]
X-Mailing-List: <debian-user@lists.debian.org> archive/latest/832947
List-ID: <debian-user.lists.debian.org>
List-URL: <https://lists.debian.org/debian-user/>
List-Archive: https://lists.debian.org/msgid-search/avtgU6DyhaoMaA_7@argo.corp
Approved: robomod@news.nic.it
Lines: 43
Organization: linux.* mail to news gateway
Sender: robomod@news.nic.it
X-Original-Date: Mon, 16 Nov 2026 13:58:11 -0600
X-Original-Message-ID: <avtgU6DyhaoMaA_7@argo.corp>
X-Original-References: <20261114170142.1a7283e6@hawk.localdomain>
 <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>