After a Debian upgrade, you still have to cleanup the mess like removing the old kernel.
For example I upgraded from Wheezy to Jessie and now I have two different kernels.
1 2 3 4 |
dpkg --list | grep linux-image ii linux-image-3.16.0-4-amd64 3.16.7-ckt11-1+deb8u6 amd64 Linux 3.16 for 64-bit PCs ii linux-image-3.2.0-4-amd64 3.2.68-1+deb7u6 amd64 Linux 3.2 for 64-bit PCs ii linux-image-amd64 3.16+63 amd64 Linux for 64-bit PCs (meta-package) |
My current kernel, the one we don’t want to remove is
1 2 |
uname -v 1 SMP Debian 3.16.7-ckt11-1+deb8u6 (2015-11-09) |
Run the purge command with the version you want to remove
1 |
apt-get purge linux-image-3.2.0-4-amd64 |
A grub generation file should be generated after the purge. If this doesn’t happen, use the command
1 |
update-grub2 |
It’s done.
Your boot menu should have changed and old kernel version should have disappeared.
Recent Comments