Comment 12 for bug 1914278

Revision history for this message
TJ (tj) wrote : Re: apt autoremove is not removing unused kernels

Erich, looks like that code wasn't reached or if it was the object (list) "auto_removable" was empty.

Maybe the problem is outside this code. Does apt think those packages are still installed?

apt list --installed 'linux-image*'

Also, what is the actual content of /boot/ ("ls -latr /boot/") ? I'm wondering if it could be that the kernels (linux-image-*) packages have been removed but the (space-eating) initrd,img* files have remained. Each of those can be close to 50MB.