Running Ubuntu 20.04; 2x Geforce GTX 1080 Ti installed.
This is the second time I ever encounter the infinite login loop problem; can't remember how I solved it last time, as it was years ago.
I installed TensorFlow (pip install tensorflow), then following a power outage I couldn't login. I'm guessing the tensorflow installation messed up my nvidia drivers (last version installed: libnvidia-cfg1-460) or something else.
What I've tried so far from tty3:
$ sudo nano /etc/default/grub
change line
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
to:
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash nomodeset"
or
GRUB_CMDLINE_LINUX_DEFAULT="quiet"
or
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash acpi=off"
or
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash pnpacpi=off"
Followed by
sudo update-grub
Obviously none of these worked.
Then, I've tried purging all CUDA and Nvidia drivers, and attempted to reinstall Nvidia:
sudo apt-get remove --purge '^nvidia-.*'
sudo apt-get --purge remove cuda*
sudo apt --fix-broken install
Then tried to reinstall from here:
https://developer.nvidia.com/cuda-downloads?target_os=Linux&target_arch=x86_64&Distribution=Ubuntu&target_version=20.04&target_type=deb_local
but got: failed: Network is unreachable (though ping to google works fine)
Of course, still doesn't work. Then, I tried in tty3:
chown username:username .Xauthority
but no such file or directory!!
Uninstalled lightdm, then installed gdm3:
sudo apt-get install gdm3
sudo dpkg-reconfigure gdm3
still, no luck.
Tried again to find .Xauthority
from: https://docs.citrix.com/en-us/linux-virtual-delivery-agent/7-15-ltsr/configuration/configure-xauthority.html
ps aux | grep -i xorg
got the output:
1323 0.1 0.1 279612 67544 tty1 Sl+ 08:32 0:00 /usr/lib/xorg/Xorg vt1 -displayfd -auth /run/user/121/gdm3/Xauthority
(*unforutnately, my screen doesn't show all the output when I'm in tty3, so I'm not absolutely sure about the part between gdm3/ and hority, where the line breaks and I miss several letters on the screen)
so, I try to access /run/user/121/gdm3/ to get .Xauthority:
cd /run/user
:No such file or directory
Try step by step:
cd /run
That works. Now:
Edited steps inserted here:
cd user
sudo su
was needed to enter 121:
cd 121
dir
tells me there's only Xauthority, not .Xauthority. So I tried:
chown user:user Xauthority
Still not working. This looks to me like a lost cause, but of course, all and any input would be greatly appreciated.