Ubuntu

sudo dpkg --list 'linux-image*'|awk '{ if ($1=="ii") print $2}'|grep -v `uname -r`
sudo rm -rf /boot/*-3.2.0-{23,45,49,51,52,53,54,55}-*
sudo apt-get -f install

https://askubuntu.com/questions/345588/what-is-the-safest-way-to-clean-up-boot-partition

# check current running linux kernel version
uname -a

# remove old kernel at /boot
apt-get purge linux-image-4.4.0-101-generic

# fix broken package
apt-get -f install
# clean up
apt-get autoremove
vi /etc/apt/apt.conf.d/50unattended-upgrades
Unattended-Upgrade::Remove-Unused-Dependencies "true";