I'm unable to login through GUI. On typing the correct password, I get a black screen and back to login screen. However, when tried with tty1 I was logged in. Then I tried reinstalling lightdm
and xorg
packages, but in vain.
These are the contents of my xsession-errors
/usr/sbin/lightdm-session: 1: /etc/profile: id: not found
/usr/sbin/lightdm-session: 12: [: Illegal number:
/usr/sbin/lightdm-session: 36: /usr/sbin/lightdm-session: xrdb: not found
/usr/sbin/lightdm-session: 1: /usr/sbin/lightdm-session: ls: not found
/usr/sbin/lightdm-session: 98: exec: gnome-session: not found
How do I overcome this issue?
UPDATE 1: Image of my /etc/profile
cat /usr/sbin/lightdm-session; cat /etc/lighdm/lightdm.conf; cat /var/log/Xorg.0.log