I can't login in my gdm3 usual session and it goes [in loop like there]. I made sudo adduser test
, and things go just fine with that user.
Before I got in that loop I did update/upgrade my system, install blueman, and edited iwlwifi files for slow connexion troubleshooting.
I since reversed the edit I made in that iwlwifi file, trying to resolve my login loop, and uninstalled blueman, I also purge gdm3 and install it back…
I installed lightdm to log in (it works, selecting lxde in the login screen…) but I'd really rather use gdm3.
I cannot login in both "Ubuntu" and "Ubuntu on Wayland" with that main account, but I do can in LXDE ; and with the testing account, I can login with Ubuntu and Ubuntu on Wayland.
I do have .Xauthority rights and I do have /tmp access right.
Here's my .xsession-errors file
Any path I didn't think of ?
Edit : I'm Ubuntu 20.04 LTS / kernel 5.4.0-29 ; x86
UPDATE :
I don't really know how, my guess is by
sudo apt purge gdm3 lightdm
reboot
sudo apt install gdm3
sudo apt install lightdm
reboot
I come to the lightdm login screen and, then, I can login to my usual user account just fine, as Ubuntu-defaut or Ubuntu on Wayland.
BUT if I run sudo dpkg-reconfigure gdm3
I get an error that gmd3 is not loaded. Ok then, I do it for lightdm then choose gdm3. I saw this trick sooner. Reboot, came to the gdm3 login screen. And it login loop again just as before.
On ttyX, I run again sudo dpkg-reconfigure gdm3
to select gdm3
properly. No luck after reboot.
I then, on ttyX, sudo dpkg-reconfigure lightdm
and here I am. I can do with that, but it's unfortunate gdm3
seems to be broken, and I'd like to know why it is… I could login in LXDE with gdm3.
Best Answer
I had this problem and tried all the things you did. The culprit turned out to be a very long environment variable. My
LS_COLORS
env var was over 9000 characters long as is was generated from adircolors
database. As soon as I removed it I could log in again. In /var/log/syslog I was getting a segfault in libpcre.so.3.13.3. That env var must have been causing it to crash.