I have a Dell Inspiron 15 7000, which has an NVIDIA GTX 1050 graphics card. I'm having a login loop like in Ubuntu gets stuck in a login loop, but it only happens when I install the NVIDIA drivers. To install the drivers, I run:
sudo apt-get install nvidia-current
When I remove them with:
sudo apt-get purge nvidia*
it starts working again, so I can login.
These solutions did not work for me:
Ubuntu gets stuck in a login loop
Ubuntu 16 Stuck in Login Loop after Installing Nvidia 364 Drivers
Also installing nvidia-prime
did not help.
Any help would be appreciated.