I've tried what's recommended in several of the questions that deal with the "login loop" with none of the solutions working. BTW, I have an nvidia GPU: GTX 1080.
Concretelly I've tried with no results:
- Copying .Xauthority and .ICEauthority, or changing ownership to the user.
- Removing and re-instlalling lightdm
- purging nvidia drivers:
sudo apt-get remove --purge nvidia-*,sudo ubuntu-drivers autoinstall,sudo service lightdm restartand reboot
Following this question advice I include the output of .xsession-errors.
$ cat ~/.xsession-errors
Xlib: extension "GLX" missing on display ":0".
Xlib: extension "GLX" missing on display ":0".
openConnection: connect: No such file or directory
cannot connect to brltty at :0
upstart: gnome-session (Unity) main process (3270) terminated with status 1
upstart: unity-settings-daemon main process (3262) killed by TERM signal
upstart: logrotate main process (3118) killed by TERM signal
upstart: bamfdaemon main process (3181) killed by TERM signal
upstart: indicator-bluetooth main process (3320) killed by TERM signal
upstart: indicator-printers main process (3333) killed by TERM signal
upstart: indicator-session main process (3334) killed by TERM signal
upstart: indicator-power main process (3321) killed by TERM signal
upstart: indicator-application main process (3359) killed by TERM signal
upstart: indicator-datetime main process (3325) killed by TERM signal
upstart: unity7 pre-start process (3263) terminated with status 143
upstart: Disconnected from notified D-Bus bus
upstart: indicator-keyboard main process (3328) killed by TERM signal
upstart: unity-panel-service main process (3281) killed by TERM signal
upstart: indicator-sound main process (3332) killed by TERM signal