25

Hello I upgraded all packages on my Ubuntu, and kernel also. But in upgrading process kernel upgrade failed, and I must always after grub load select older kernel. It is a terminal command to reinstall latest kernel?

Eric Carvalho
  • 54,385
user160995
  • 361
  • 1
  • 3
  • 5

1 Answers1

32

Run the following command in a terminal (Ctrl+Alt+T):

dpkg -l | grep linux-image-.*-generic

Look for the kernel version you want to reinstall then run:

sudo apt-get install --reinstall linux-image-3.X.Y-ZZ-generic

Of course, you must type the actual kernel version (e.g. linux-image-3.8.0-21-generic) instead of linux-image-3.X.Y-ZZ-generic.

Eric Carvalho
  • 54,385