I have updated my desktop pc to kernel 4.4.0-38 from 4.4.0-36 (that was ok). After restart I couldn't log in into my computer anymore.
With advanced from grub, i selected the old 4.4.0-36 kernel and tried to delete the new one 4.4.0-38.
Details of the bug mentioned above. When trying to delete kernel with:
sudo apt-get purge linux-image-4.4.0-34-generic
=>
The following packages have unmet dependencies: linux-headers-4.4.0-38-generic : Depends: linux-headers-4.4.0-38 but it is not going to be installed E: Unmet dependencies.
or
sudo apt-get purge linux-image-4.4.0-38-generic
=>
The following packages have unmet dependencies: linux-headers-4.4.0-38-generic : Depends: linux-headers-4.4.0-38 but it is not going to be installed linux-image-extra-4.4.0-38-generic : Depends: linux-image-4.4.0-38-generic but it is not going to be installed linux-image-generic-lts-xenial : Depends: linux-image-4.4.0-38-generic but it is not going to be installed E: Unmet dependencies.
and
sudo apt-get -f install
WON'T resolve it.
I found this question Not enough free disk space when upgrading and used it to free up space on my ubuntu partition.
As a temporary fix I used this Set "older" kernel as default grub entry to set the default kernel as 4.4.0-36 in order to use the computer.