On Sun, 2026-05-24 at 09:35 -0400, Greg Wooledge wrote: > On Sun, May 24, 2026 at 09:08:58 -0400, The Wanderer wrote: > > On 2026-05-24 at 08:23, Antonio Russo wrote: > > > The linux-headers-amd64 package exists for this exact purpose. > > > (presumably other architectures have an equivalent). > > > > That will handle the "corresponding" part, but not AFAIK the > > "automatically" part - which I parse as meaning "when I install a > > new > > (version of) linux-image-*, linux-headers-* should get installed > > along > > with it, without me needing to do anything extra at install time to > > make > > that happen". > > > > I have yet to manage to think of a way to *ensure* that automation > > in > > all circumstances, for all methods of initiating upgrade. > > If you need DKMS modules, you have two paths from which to choose. > The first path, which most people choose, involves adding a > trixie-security source to apt, and installing both "linux-image- > amd64" > and "linux-headers-amd64". Whenever there's a kernel security > update, > you will automatically get both the image and headers for that > update.
That was it. After every kernel update, Debian didn't boot to a gui. Just a black screen. Installing linux-headers-$(uname-r) resplved the issue. Thanks Greg.

