[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: apt upgrade



On Fri, Nov 21, 2025 at 2:10 PM mick.crane <mick.crane@gmail.com> wrote:
>
> updating and upgrading Trixie with apt there was a message about can't
> find the headers not installing modules. Reboot and X won't start with
> the new kernel. Installing the headers and re-installing the kernel
> installed the modules,likely for nvidia-driver, and seems to have solved
> the issue.
> Is there an apt line that says install the headers if going to need them
> or are you supposed to check which kernel might be installed and get the
> headers before upgrading?

As Šarūnas said, the two packages of interest on Debian are
linux-image-amd64 and linux-headers-amd64.  I even go so fars as to
apt-mark them as automatic:

    apt-get install -y linux-image-amd64 linux-headers-amd64
    apt-mark auto linux-image-amd64 linux-headers-amd64

And for the drivers, you may need to enable some repos and components
in /etc/apt/sources.list.  Specifically, non-free-firmware.  See
<https://wiki.debian.org/SourcesList>.

Jeff


Reply to: