I know this question asked so many times before but none of the solutions worked for me. My OS is Ubuntu 16.04.5 (alongside Win10) when I type the correct pw it enters the login loop.
journalctl colored output: https://gist.github.com/ridvansumset/40e9223262361fa9590aa5e5bc5e10a6
The solutions I found on the web and tried are:
1- (at login screen) Ctrl+Alt+F3 then
chown username:username .Xauthority then
mv .Xauthority .Xauthority.bak
2- (at login screen) Ctrl+Alt+F3 then remove
lightdm and reinstall it
3- Entering the recovery mode then choosing dpkg then relogin
sudo apt-get purge nvidia*
5- etc/shadow file already exists.
Nothing works for me :(. Can someone please help? It's urgent