To be able to upgrade, the /boot filesystem needs to be cleaned up to free up space to install the new kernel .
What is the command to delete the old kernels?
API Gateway 11.X
To free up space in /boot filesystem, you can remove old unused kernels. The following command will show installed kernels:
dpkg --list | egrep -i --color 'linux-image|linux-headers'
ii linux-image-5.10.0-33-amd64 5.10.226-1 amd64 Linux 5.10 for 64-bit PCs (signed)
ii linux-image-amd64 5.10.226-1 amd64 Linux for 64-bit PCs (meta-package)
If you have multiple kernel versions, you can remove the unused one with one of the following commands:
apt-get --purge remove linux-image-5.10.0-33-amd64
sudo apt-get --purge remove linux-image-5.10.0-33-amd64