Can't login to Ubuntu 16.04 after upgrade

I installed Ubuntu 16.04 (dual boot with Win 10) and it doesn't login after. I upgraded from Ubuntu 15.10 via update-manager

https://youtu.be/MrgPYvoVJfA

I have tried old workarounds for previous versions, like:

  • dpkg-reconfigure lightDM
  • chown user:user .Xauthority
  • chmod 666 .Xauthority
  • chmod a+wt /temp
  • mv .Xauthority smth
  • apt-get install ubuntu-session
  • Reinstalling Nvidia Drivers

Any suggestions appre


I was in the same situation as you.

I did not reinstall nvidia drivers but remove it.

sudo apt-get purge nvidia*

And it worked.


On all my systems (all had the same problem) the solution was:

  • Switch to console using Ctrl+Alt+F1
  • Login to text console (your username is enough if your system only has one user. otherwise you will need root user or sudo)
  • rm /home/*/.Xauthority
  • reboot

I ran into the same problem on my upgrade to 16.04 from 15.10. I recalled that during the upgrade, there was a prompt regarding UEFI Secure Boot options. I checked my BIOS settings and sure enough, Secure Boot was set to "Windows Only". I selected "Other OS" from the list (your options may be different) and booted normally. All fixed.

Have not seen any other mentions of this fix so hopefully this will help.