So below is the command line way:
1) Press Ctrl+Alt+T to open terminal for running commands. Check current running kernel version.
uname -r OR
uname -sr
Don’t remove this kernel!
2) Copy and paste below command and hit run to check list of installed Kernels on your system:
dpkg --list | grep linux-image OR
dpkg --list | grep linux-image | awk '{print$2}'
3) Find out the kernels you want to remove, and run below command to accomplish it: Change x.x.x.x to the kernel version
Notice :
Remember to keep the 2 latest kernels
sudo apt-get purge linux-image-x.x.x.x-generic
4) Update grub2 configuration
sudo update-grub2
5) Reboot the system
sudo reboot
No comments:
Post a Comment