Removing old Linux Kernel files

From myWiki
Revision as of 15:32, 20 April 2015 by Stevet (talk | contribs) (Created page with "Open terminal and check your current kernel: uname -r DO NOT REMOVE THIS KERNEL! Next, type the command below to view / list all installed kernels on your system. dpkg...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Open terminal and check your current kernel:

uname -r 

DO NOT REMOVE THIS KERNEL!

Next, type the command below to view / list all installed kernels on your system.

dpkg --list | grep linux-image 
dpkg --list | grep linux-headers 

Find all the kernels that lower than your current kernel. When you know which kernel to remove, continue below to remove it. Run the commands below to remove the kernel you selected.

sudo apt-get purge linux-image-x.x.x.x-generic
sudo apt-get purge linux-headers-x.x.x.x

Related error: The volume "filesystem root" has only X bytes disk space remaining