This is a tutorial to delete a (manual) installed kernel or a kernel you don't use. Today i installed the 5.14.8 kernel on Pop OS! and that kernel gaved me a bounch of installation errors. Rebooting the laptop and bam i was in the emergency boot screen. The problem with the installation was again that annoying message about libc6 (>= 2.34). I rebooted the laptop, pressed escap and used the 5.13 kernel that came with Pop! OS. So from there i tried to delete the installed kernel.
- View the kernel you use, write in terminal: uname -r
- To see a list of installed kernels, write in terminal: sudo dpkg --list | egrep -i --color 'linux-image|linux-headers|linux-modules'
- Remove unwanted kernels, write in terminal: sudo apt remove --purge kernel-to-remove (sample: sudo apt remove --purge linux-headers-5.14.8-051408)
- Remove the packages that are not needed anymore, write in terminal: sudo apt autoremove --purge
- Synchronize Package List, write in terminal: sudo apt update && sudo apt upgrade
That is all