I've seen a lot of login loop questions and threads and have tried everything from here –
Ubuntu gets stuck in a login loop
Except installing gdm3, but I cannot get out of the damn login loop. Should I try gdm3? The only reason I didn't yet is because I've been a long time ubuntu user and my default login is customized pretty specifically for work and school.
EDIT:
I installed gdm3 and configured for my default login, still stuck in a login loop with the same error message as below.
What's strange is I am able to log into Unity 8 (via the dropdown from the icon in the login gui), although nothing seems to work in there, but the default ubuntu login just loops.
I've checked permissions, everything looks to be set to my username and group, I've moved and removed Xauthority, purged, reconfigured, reinstalled etc. lightdm, and more. I've been at this for a couple hours now and to make things worse my other computer's drive failed early this week so I am now stuck unable to get anything done.
I am able to login via tty (ctrl + alt + Fkeys), so I have been trying solution after solution via CLI for hours. If anyone can help me out here I will forever be in your debt. If there are links to questions or threads I may have not read yet feel free to drop them here, however I am pretty sure I've been through the majority and nothing has worked yet.
I am running on an hp envy currently amd64
Thanks in advance
EDIT:
I'm not sure if this helps but I noticed an error in the top right of the screen when trying to login –
vboxclient: virtual box kernel not running. Exiting.
Or something very close to that. I am not running ubuntu on virtual box, it is my only OS so it didn't make sense to me but may provide more info.
Output of lspci -k | grep -EA3 'VGA|3D|Display'
00:02.0 VGA compatible controller: Intel Corporation HD Graphics 520 (rev 07)
Subsystem: Hewlett-Packard Company HD Graphics 520
Kernel driver in use: i915
Kernel modules: i915
(Apologies for any formatting issues, I'm doing this from my phone)
I've checked ~/.xsession-errors
again and I see several
dbus-update-activation-environment: setting
errors in there. This is over my head but does this help?
Best Answer
After typing this answer, I realize you are using 17.04, not 17.10, so this probably won't help you. In any case, I ran into the same problem in 17.10 yesterday after updating (with
sudo apt-get update
,sudo apt-get upgrade
). Like you I tried changing the permissions for.Xauthority
(or deleting this file) which did not help. Nor did runningdpkg-reconfigure lightdm
ordpkg-reconfigure gdm3
, or reinstalling gdm3 (17.10 uses gdm3).In my case, I was able to get around the issue by clicking on the little gear icon to the right of my login name on the login splash screen, and select "Unity" (not gnome or wayland) from the pull-down menu, and THEN enter the password. Again this is probably irrelevant for you but hopefully it helps someone else using 17.10 who browses here.