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.
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.