Maybe it’s beacause I’ve already deleted images by a wrong way…
On another server, I have the same problem, but I hadn’t suppress something before, so It’s not because of a wrong practice :
First, see all images :
root@server:/# dpkg -l |grep linux-image
ii  linux-image-4.19.0-18-cloud-amd64     4.19.208-1                                         amd64        Linux 4.19 for x86-64 cloud (signed)
rc  linux-image-4.19.0-19-cloud-amd64     4.19.232-1                                         amd64        Linux 4.19 for x86-64 cloud (signed)
rc  linux-image-4.19.0-20-cloud-amd64     4.19.235-1                                         amd64        Linux 4.19 for x86-64 cloud (signed)
ii  linux-image-4.19.0-21-cloud-amd64     4.19.249-2                                         amd64        Linux 4.19 for x86-64 cloud (signed)
ii  linux-image-5.10.0-17-cloud-amd64     5.10.136-1                                         amd64        Linux 5.10 for x86-64 cloud (signed)
ii  linux-image-cloud-amd64               5.10.136-1                                         amd64        Linux for x86-64 cloud (meta-package)
And the one currently used :
root@server:/#  uname -a
Linux vps-serveur01.captp.fr 5.10.0-17-cloud-amd64 #1 SMP Debian 5.10.136-1 (2022-08-13) x86_64 GNU/Linux
Deletion of the older :
root@server:/# sudo apt remove linux-image-4.19.0-18-cloud-amd64
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages will be REMOVED:
  linux-image-4.19.0-18-cloud-amd64
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
After this operation, 73.9 MB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 97297 files and directories currently installed.)
Removing linux-image-4.19.0-18-cloud-amd64 (4.19.208-1) ...
/etc/kernel/postrm.d/initramfs-tools:
update-initramfs: Deleting /boot/initrd.img-4.19.0-18-cloud-amd64
/etc/kernel/postrm.d/zz-update-grub:
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-5.10.0-17-cloud-amd64
Found initrd image: /boot/initrd.img-5.10.0-17-cloud-amd64
Found linux image: /boot/vmlinuz-4.19.0-21-cloud-amd64
Found initrd image: /boot/initrd.img-4.19.0-21-cloud-amd64
done
Display of all images :
root@server:/# dpkg -l |grep linux-image
rc  linux-image-4.19.0-18-cloud-amd64     4.19.208-1                                         amd64        Linux 4.19 for x86-64 cloud (signed)
rc  linux-image-4.19.0-19-cloud-amd64     4.19.232-1                                         amd64        Linux 4.19 for x86-64 cloud (signed)
rc  linux-image-4.19.0-20-cloud-amd64     4.19.235-1                                         amd64        Linux 4.19 for x86-64 cloud (signed)
ii  linux-image-4.19.0-21-cloud-amd64     4.19.249-2                                         amd64        Linux 4.19 for x86-64 cloud (signed)
ii  linux-image-5.10.0-17-cloud-amd64     5.10.136-1                                         amd64        Linux 5.10 for x86-64 cloud (signed)
ii  linux-image-cloud-amd64               5.10.136-1                                         amd64        Linux for x86-64 cloud (meta-package)
There is always the one I just delete ! I attempt to delete it one more time :
root@server:/# sudo apt remove linux-image-4.19.0-18-cloud-amd64
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Package 'linux-image-4.19.0-18-cloud-amd64' is not installed, so not removed
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Without success. I attempt to delete another old kernel :
root@server:/# sudo apt remove linux-image-4.19.0-19-cloud-amd64
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Package 'linux-image-4.19.0-19-cloud-amd64' is not installed, so not removed
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
No more success. I don’t understand…