My problem was /etc/kernel/header_postinst.d/nvidia-common was empty a reinstall of nvidia-common fixed it so probably nothing to do with your issue
My problem was /etc/kernel/ header_ postinst. d/nvidia- common was empty a reinstall of nvidia-common fixed it so probably nothing to do with your issue