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 restart
and 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
Best Answer
The problem was basically nvidia drivers screwing up the system so badly that the nvidia re-install didn't work as expected.
They say to diagnose this is by running in the terminal:
nvidia-smi
which returned. NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driverThe solution was basically a full re-install of the OS. So downloading ubuntu 16.04 in a USB drive, re-installing ubuntu.
Then:
this is the driver for GTX 1080 from: https://developer.nvidia.com/cuda-downloads?target_os=Linux&target_arch=x86_64&target_distro=Ubuntu&target_version=1604&target_type=debnetwork
then reboot and everything works, for now. Thanks nvidia for your trashy software!
Here is the discussion of the topic from nvidia-forum with some extra details.