If I understand you correctly, you want to set it up so that for every
package pair

linux-image-<version>
linux-headers-<version>

attempting to install the former results in also installing the latter?
And you want this to apply not just for a specific version number, but
for every version number, including ones that haven't come out yet?


Yes this is what I want.
Just off the top of my head, I don't think there's any way to accomplish
that. The only possible avenue I can think of for adding an effective

I was hoping I can add some rule based on regex in /etc/apt/preferences.d that will accomplish this. Well, if there isn't one then there is nothing much I can do.

Since the system is accessible by ssh even if screen goes blank by a imperfect install of just linux-image, I can always ssh and then install headers and reinstall image to get nvidia-driver rebuilt and reboot. So, it is not that I am completely broken without this rule, but I wish it is something that can force/automate.

Thanks for taking the time to respond with detail.

Before I go, I have one question. When I try to install linux-image, apt tries to trigger a nvidia-driver build, but fails because headers are not present. However, it still completes the image install and changes grub menu etc. I prefer it stopped and complained. Is there a way to tell it to error out on this step, so that I will be prompted to look at this more closely? Typically, this message flies by on the screen and I was lucky that I saw it the last time.

Regards
Ramesh

Reply via email to