kernels have a package name. Any file tied to the kernel should lead you back to the package name.
For example:
Code:
hadar:/boot$ ls
config-4.15.0-129-generic lost+found/
config-4.15.0-132-generic System.map-4.15.0-129-generic
grub/ System.map-4.15.0-132-generic
initrd.img-4.15.0-129-generic vmlinuz-4.15.0-129-generic
initrd.img-4.15.0-132-generic vmlinuz-4.15.0-132-generic
initrd.img-4.15.0-70-generic
The vmlinuz files are part of the kernel.
Code:
hadar:/boot$ dpkg -S vmlinuz-4.15.0-129-generic
linux-image-4.15.0-129-generic: /boot/vmlinuz-4.15.0-129-generic
So the name of the kernel package to reinstall on that system is linux-image-4.15.0-129-generic. The command for that is:
Code:
sudo apt install --reinstall linux-image-4.15.0-129-generic
Your answer will almost certainly be different and the most recent vmlin* file is probably the corrupted.
There are other ways to get to the same place. I think aptitude will let you reinstall a package from a list of installed ones. Synaptic probably will too.
Bookmarks