🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.debian.user
Article #512

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

#512
From: Charles Curley
Date: Sun, 15 Nov 2026 05:10
41 lines
4686 bytes
On Sat, 14 Nov 2026 21:51:35 -0500
Greg Wooledge <greg@wooledge.org> wrote:

> > As near as I can figure this setting should give me three kernel
> > packages installed, instead of the default two. However, I now have
> > five on test machines.  
> 
> Are you running apt autoremove?
> 
> The setting you're looking at affects autoremove.  It doesn't
> *trigger* an autoremove.  You still need to run it yourself.

Now you have me mystified. If I don't set
APT::NeverAutoRemove::KernelCount then upgrades automatically install a
new kernel. (I have linux-image-amd64 installed.) They also remove an
old one, leaving me with the default net two kernels.

I don't think I have ever run "apt autoremove". I just did so on a
machine with five kernels installed; none were removed.

"man apt" says,

    autoremove is used to remove packages that were automatically
    installed to satisfy dependencies for other packages and are now no
    longer needed as dependencies changed or the package(s) needing
    them were removed in the meantime.

The current linux-image-amd64 depends on
linux-image-6.12.117+deb13-amd64. So if autoremove worked on kernels,
should it have removed all the kernels except
linux-image-6.12.117+deb13-amd64? Maybe it makes an exception for
kernels?

(And I am well aware of the dangers of believing the documentation
uncritically.)

-- 
Does anybody read signatures any more?

https://charlescurley.com
https://charlescurley.com/blog/
Technical Details
Message-ID: <NZAF3-bYAN-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: <NZvYJ-bW04-11@gated-at.bofh.it> <NZyDf-bXfH-5@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: Charles Curley <charlescurley@charlescurley.com>
Newsgroups: linux.debian.user
Subject: Re: APT::NeverAutoRemove::KernelCount "3"; Not quite working: I get  more than three kernels
Date: Sun, 15 Nov 2026 06:10:01 +0100
Message-ID: <NZAF3-bYAN-1@gated-at.bofh.it>
References: <NZvYJ-bW04-11@gated-at.bofh.it> <NZyDf-bXfH-5@gated-at.bofh.it>
X-Mailbox-Line: From debian-user-request@lists.debian.org  Sun Nov 15 05:05:52 2026
Old-Return-Path: <charlescurley@charlescurley.com>
X-Amavis-Spam-Status: No, score=-0.752 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_BL_SPAMCOP_NET=1.347, RCVD_IN_MSPIKE_H2=0.001]
 autolearn=no autolearn_force=no
X-Policyd-Weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 CL_IP_EQ_HELO_IP=-2 (check from: .charlescurley. - helo: .omta38.uswest2.a.cloudfilter. - helo-domain: .cloudfilter.)  FROM/MX_MATCHES_NOT_HELO(DOMAIN)=0; rate: -3.5
X-Authority-Analysis: v=2.4 cv=c8KrQQ9l c=1 sm=1 tr=0 ts=6af93da1
 a=NgvI/wQFGgfv1u5PwVnSLQ==:117 a=NgvI/wQFGgfv1u5PwVnSLQ==:17
 a=kj9zAlcOel0A:10 a=zJRp6_cAMcgA:10 a=x5bAJOVjf1IA:10 a=UPwgjlzBAAAA:8
 a=dZMFJRZpAAAA:8 a=cBT18FnQwyzm2OaRn6gA:9 a=CjuIK1q_8ugA:10
 a=IJG1HS28PhTFVN2WG8Av:22 a=0ALrU5orTrKXcsu2oHG6:22 a=77MlUavazzFiBdNJOaXW:22
Organization: occasionally
X-Mailer: Claws Mail 4.3.1 (GTK 3.24.49; x86_64-pc-linux-gnu)
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
X-Antiabuse: This header was added to track abuse, please include it with any abuse report
X-Antiabuse: Primary Hostname - box5635.bluehost.com
X-Antiabuse: Original Domain - lists.debian.org
X-Antiabuse: Originator/Caller UID/GID - [47 12] / [47 12]
X-Antiabuse: Sender Address Domain - charlescurley.com
X-Bwhitelist: no
X-Source-IP: 97.245.236.164
X-Source-L: No
X-Exim-ID: 1xSSQq-00000001CCZ-41zl
X-Source-Sender: 164.sub-97-245-236.myvzw.com (peregrine.localdomain) [97.245.236.164]:38946
X-Source-Auth: charlescurley@charlescurley.com
X-Email-Count: 1
X-Org: HG=bhshared;ORG=bluehost;
X-Source-Cap: Y2hhcmxpYTM7Y2hhcmxpYTM7Ym94NTYzNS5ibHVlaG9zdC5jb20=
X-Local-Domain: yes
X-Cmae-Envelope: MS4xfHO9gFVdaqOiPXUqMp/20DICsa1PBbv0QUBlthYRVfhzW5S8XUkPgxb00bI+LiYkDik1Hv6wo7merEYztQnAr8LKXMxmEkzETVYBXFqcu4AY4T6E2Url
 CKgi8MEPFOm3Gwopp0PIMDxDy9BWlW3zkmaNghtNJYM7XNc6FvT2tj7mLpX/i0Xc54s1LrKJ3QlbTRlSULGCUlPFD+zS6my0ZHlgivSfBViXqjatvraCxmcP
X-Mailing-List: <debian-user@lists.debian.org> archive/latest/832897
List-ID: <debian-user.lists.debian.org>
List-URL: <https://lists.debian.org/debian-user/>
List-Archive: https://lists.debian.org/msgid-search/20261114220535.588a318e@peregrine.localdomain
Approved: robomod@news.nic.it
Lines: 41
Sender: robomod@news.nic.it
X-Original-Date: Sat, 14 Nov 2026 22:05:35 -0700
X-Original-Message-ID: <20261114220535.588a318e@peregrine.localdomain>
X-Original-References: <20261114170142.1a7283e6@hawk.localdomain>
	<avkeN-Tw0ppxgzqc@wooledge.org>