another login loop problem
Thanks to the help of terdon, the output of grep -H PATH ~/.profile revealed the login-loop problem:
~/.profile:PATH=/usr/local/bin
instead it should've been:
~/.profile:PATH=/usr/local/bin:$PATH
@terdon, @Braiam: Thanks a lot for your help!
Same problem occurred to me so what I did was opened TTL through ctrl+Alt+F1
Then in the terminal enter hostname and password then cat .xsession-errors
you will find errors.
In my case, I made some changes on PATH variable file /etc/environment
so removing my changes helped me.
Changing .profile
or /etc/environment
may result in the problem.