Well this question is asked often - however the solution seems not be so clear and does not really work for me.
$ df
Filesystem 1k-blocks Used Available Use% Mounted on
/dev/sda5 184307 173269 0 100% /boot
/dev/sda6 4673664 2926312 1486900 67% /home
$ dpkg -l | tail -n +6 | grep -E 'linux-image-[0-9]+' | grep -Fv $(uname -r)
pi linux-image-4.4.0-21-generic 4.4.0-21.37 amd64 Linux kernel image for version 4.4.0 on 64 bit x86 SMP
ii linux-image-4.4.0-22-generic 4.4.0-22.40 amd64 Linux kernel image for version 4.4.0 on 64 bit x86 SMP
iF linux-image-4.4.0-28-generic 4.4.0-28.47 amd64 Linux kernel image for version 4.4.0 on 64 bit x86 SMP
iF linux-image-4.4.0-31-generic 4.4.0-31.50 amd64 Linux kernel image for version 4.4.0 on 64 bit x86 SMP
And this is the best one:
$ sudo apt-get purge linux-image-extra-4.4.0-36-generic
Paketlisten werden gelesen... Fertig
Abhängigkeitsbaum wird aufgebaut.
Statusinformationen werden eingelesen.... Fertig
Probieren Sie »apt-get -f install«, um dies zu korrigieren:
Die folgenden Pakete haben unerfüllte Abhängigkeiten:
linux-image-extra-4.4.0-34-generic : Hängt ab von: linux-image-4.4.0-34-generic soll aber nicht installiert werden
linux-image-generic : Hängt ab von: linux-image-4.4.0-36-generic soll aber nicht installiert werden
Hängt ab von: linux-image-extra-4.4.0-36-generic soll aber nicht installiert werden
E: Unerfüllte Abhängigkeiten. Versuchen Sie »apt-get -f install« ohne Angabe eines Pakets (oder geben Sie eine Lösung an)
Somehow the 4.4.0-36 seems to be installed but it isn't. I even cannot brainwash the package manager.
I know I SHALL NOT cd /boot;rm -f ........
in order to confuse the masterbrain not even more but I see no other way then to help itself to get clean.
My question now is the following:
Can I sudo rm -f /boot/somebigfiles;sudo touch /boot/somebigfiles
in order to create some working space on /boot
?
How to fool the package manager so he thinks the stuff is installed and can clean itself with all the nice apt-get clean/autoclean
and other apt commands?