I can't login through GUI on Ubuntu version 16.04. This problem occurred after installing JDK 8 and Scala/SBT (if I remember correctly, it was needed to declare paths for Java or something).
I have already tried the 3 usual fixes for this problem and I've also tried editing / looking for possible syntax errors on files like .profile (I can't really get my head around how all these files interact with each others, I'm really new to Linux).
This is text from .xsession-errors:
/usr/sbin/lightdm-session: line 24: mktemp: command not found
/usr/sbin/lightdm-session: line 29: : No such file or directory
/usr/sbin/lightdm-session: line 33: cat: command not found
/usr/sbin/lightdm-session: line 34: truncate: command not found
/usr/sbin/lightdm-session: line 29: : No such file or directory
/usr/sbin/lightdm-session: line 33: cat: command not found
/usr/sbin/lightdm-session: line 34: truncate: command not found
/usr/sbin/lightdm-session: line 106: ls: command not found
/usr/sbin/lightdm-session: line 117: exec: gnome-session: not found
Also, I'm really sorry for the lack of information provided here since I don't really know what should I provide here.