As soon as I install the nvidia drivers, whatever the version is, it will return back to the login loop.
Using sudo apt install nvidia-390 from ppa:graphics-drivers/ppa I installed the nvidia drivers. I even added the MOK key into Secure Boot.
My nvidia-smi in tty1 returns the drivers 396.24
However I cannot login because of the loop
I change the .Xauthority and .ICEauthority nothing happen
I modified ./bashrc and ./profile back to normal nothing happen
However, As soon as I sudo service lightdm stop then sudo apt purge nvidia* then sudo service lightdm restart I'm able to login in again.
I need to install cuda and tensorflow for my work. I want to do it on Ubuntu cuz Windows sucks so do you guys have any suggestions and fixes?
I'm running on Ubuntu 18.04
Oh, btw I also disable Wayland and do everything on different forum suggest and there is no success in it. I have spent too many days fixing this stuff.
Thank you