I'm running Ubuntu 16.04 64 bit. I accidentally deleted some important files while trying to uninstall PostgreSQL and now I can't log in anymore, plus all the icons, even in the login screen, are not loading properly.
It's absolutely vital for me to restore it without losing any file and most importantly any settings and also without damaging my others Windows partitions. Is it possible (without doing a brand new installation in another partition just to retrieve the data, as suggest by several other people)?
UPDATE/FIX: In case someone else is experiencing the same problem, that's how I solved it. Even if you are not able to log in, once in the login screen, open the terminal (ctrl+alt+F1) and write
sudo apt-get -f install sudo apt-get install ubuntu-desktop
reboot. And that's all.