PDA

View Full Version : [SOLVED] Ubuntu 17.10 login loop



aridus
October 20th, 2017, 07:32 AM
I upgraded my Dell XPS yesterday to Ubuntu 17.10. I am able to login with Unity, but not via either of the other two options (that would lead to gnome): the login screen simply returns (a login loop, if you wish). I have searched for solutions to this but to no avail. This laptop has been through several versions of Ubuntu without previous problems.

If anybody has any suggestions, I would be grateful.

dino99
October 20th, 2017, 08:29 AM
which graphic it is ?
by default, ubuntu open a wayland session : there are known issues with some nvidia drivers & with radeon cards
at the login step, select a x11 session

aridus
October 20th, 2017, 09:15 AM
Thank you. Graphics card:


$ lspci | grep VGA
00:02.0 VGA compatible controller: Intel Corporation Haswell-ULT Integrated Graphics Controller (rev 0b)

I have tried both the default wayland and x11 sessions, but to no avail: it is a login loop for both.

aridus
October 20th, 2017, 10:58 AM
Some further information on this problem. Following the advice in https://askubuntu.com/questions/450545/login-loop-14-04-but-guest-account-is-accessible, I used

ls -ld ~/.*authority

and found

-rw------- 1 aridus aridus 118956 Oct 20 10:50 /home/aridus/.ICEauthority
-rw------- 1 root root 100 Oct 20 10:30 /home/aridus/.Xauthority

Again, following the advice in this thread, I used

sudo chown aridus:aridus ~/.Xauthority

and now I have

-rw------- 1 aridus aridus 118956 Oct 20 10:50 /home/aridus/.ICEauthority
-rw------- 1 aridus aridus 100 Oct 20 10:30 /home/aridus/.Xauthority

However, I can still only login with Unity, and not via wayland or x11.

solitaire
October 20th, 2017, 02:38 PM
Can you access the grub boot menu?
Try using an older kernel see if you can log in to the required desktop.

(I've an Nvidia card in my box and I get the logon loop every time a new kernel is installed. I need to manually reinstall the Nvidia drivers every time.
Due to DKMS is not rebuilding when a new kernel is installed.)

aridus
October 20th, 2017, 03:48 PM
Thank you for this interesting idea, which I have tried. I can roll back to the 4.10 kernel, but it does not resolve the situation.

aridus
October 21st, 2017, 08:09 AM
I have now followed the instructions at https://askubuntu.com/questions/551991/ubuntu-stuck-on-login-screen (but replacing lightdm with gmd3, and including a purge of gdm and ubuntu-desktop, and reinstall) but to no avail.

I've read a number of links and threads but have found no further suggestions. Does anybody have any other ideas?

With grateful thanks

aridus
October 21st, 2017, 08:35 AM
Having just read this thread https://askubuntu.com/questions/846862/stuck-in-login-ubuntu-14-04-after-trying-everything

I ran sudo ubuntu-drivers devices and found that intel-microcode could be installed. Did so, but it did not help.

solitaire
October 21st, 2017, 11:38 AM
Can you see anything in /var/log/syslog ?

Boot into recovery mode and take a look at the syslog.
Look for any "gnome-session" or "gnome-session-binary" or "gnome-shell" errors

Or any errors or fails you see in the log file. That should help narrow down the problem.

damienjbyrne
October 21st, 2017, 04:47 PM
Hi there, I was having the exact same issue. I had been using gnome with a number of shell extensions enabled. I renamed this file:

~/.config/dconf/user

And then I could log in, but without a number of my gnome customisations. I tried re-enabling a few of the extensions and it seems that any that modify the top bar make it crash.

aridus
October 21st, 2017, 06:39 PM
Thank you @solitaire. I am not sufficiently knowledgeable to know what I am looking for but I tried a login under Wayland and for that time found the following:

Oct 21 18:42:20 martin gnome-session[2005]: gnome-session-binary[2005]: CRITICAL: Unable to create a DBus proxy for GnomeScreensaver: Error calling StartServiceByName for org.gnome.ScreenSaver: GDBus.Error:org.freedesktop.DBus.Error.Spawn.Child Exited: Process org.gnome.ScreenSaver exited with status 1
Oct 21 18:42:20 martin gnome-session-binary[2005]: CRITICAL: Unable to create a DBus proxy for GnomeScreensaver: Error calling StartServiceByName for org.gnome.ScreenSaver: GDBus.Error:org.freedesktop.DBus.Error.Spawn.Child Exited: Process org.gnome.ScreenSaver exited with status 1

Oct 21 18:42:21 martin gnome-session[2005]: gnome-session-binary[2005]: WARNING: Application 'org.gnome.Shell.desktop' killed by signal 5
Oct 21 18:42:21 martin gnome-session-binary[2005]: WARNING: Application 'org.gnome.Shell.desktop' killed by signal 5
Oct 21 18:42:21 martin gnome-session-binary[2005]: Unrecoverable failure in required component org.gnome.Shell.desktop

aridus
October 21st, 2017, 06:48 PM
@damienjbyrne Under 17.04 I had at one point installed gnome, and then removed it. So, I followed your suggestion,, and renamed ~/.config/dconf/user

It removed all of my custom settings in Unity but has not allowed me to boot into Ubuntu on Wayland or X11. Is there a gnome-specific configuration file that I could try deleting?

aridus
October 22nd, 2017, 09:13 AM
I am reporting here that I gave up on this. Obviously there was something stuck somewhere, so to speak, but I was wasting too much time trying to fix it. I therefore did a fresh install of Ubuntu 17.10 but this did not solve the problem (I have / and home on separate partitions and did not format the home partition).

I therefore deleted all hidden files and folders in the home partition, and reinstalled, and now the login loop has gone.

aridus
October 22nd, 2017, 09:38 AM
With thanks to all of those who tried to help, but I gave up on this after spending a long, futile time trying to resolve the situation.

I have resinstalled Ubuntu 17.10 but, as I have / and home on separate partitions, I had to first of all delete all hidden files and folders in the home partition (an attempt without doing this did not resolve the situation). Following resinstallation the login loop has gone.

ulysses77
October 29th, 2017, 04:07 AM
Alright, I'm having the exact same issue and it's absolutely driving me nuts. What the heck can I do to get Ubuntu to just act normally? I don't get what's causing this issue

aridus
October 29th, 2017, 07:48 AM
A clean install was, unfortunately, my only solution.

jkapelus
October 30th, 2017, 12:39 PM
A clean install was, unfortunately, my only solution.

Mine only started looping after installing a few new gnome extensions.

journalctl -b showed 'org.gnome.Shell.Desktop' killed by signal 11.

In "/home/$USER/.local/share/gnome-shell/extenstions/", I "rm -f -r" each extension directory that I recognised as recent.

After a reboot, the login loop was solved.

comexmix
October 30th, 2017, 04:45 PM
I solved this issue easily by doing the following:
Start Ubuntu. At the login use the following keys CTRL+ALT+F2 to enter the terminal.
Once logged in, type:
sudo apt-get update
Then
sudo apt-get upgrade
it will prompt you to configure errors with a dedicated line. Just write it and let it run.
It worked fine for me. Ubuntu 17.10 running now and it looks great.

baddison1
October 30th, 2017, 10:12 PM
I have just completed a brand new fresh install of ubuntu 17.10. I followed all previous hacks and instructions to disable wayland server. I can confirm I'm using x11 by doing "echo $XDG_SESSION_TYPE". It returns "x11". When I install any of the NVIDIA drivers, it causes a consistent boot loop and I cannot get to the login screen at all. I am able to boot into GRUB and mount files system as ROOT to uninstall all traces of nvidia. I can now boot into xorg - X11, but the video is HORRIBLE, slow painting of screens, still videos with sound and no movement. I have even tried older versions of NVIDIA drivers and not just the newest ones....all with the same exact result: BOOT LOOP. I am confused as to why the drivers do not work. I understand that wayland is not yet compatible with nvidia for 'buntu 17.10 as yet.....but I am not using wayland, I'm using XORG.

so confused

baddison1
October 31st, 2017, 01:35 PM
I solved this issue easily by doing the following:
Start Ubuntu. At the login use the following keys CTRL+ALT+F2 to enter the terminal.
Once logged in, type:
sudo apt-get update
Then
sudo apt-get upgrade
it will prompt you to configure errors with a dedicated line. Just write it and let it run.
It worked fine for me. Ubuntu 17.10 running now and it looks great.

@comexmix did you already have nvidia drivers installed when you performed this? do the drivers need to be installed "outside" of Ubuntu 17.10 ?

sunnybharel
January 9th, 2018, 02:08 PM
Here is how I solved this issue:

In /var/logs/syslog I noticed:
https://photos.app.goo.gl/fY845PclQx53v49w2278102
https://photos.app.goo.gl/fY845PclQx53v49w2

The solution:
278101

warren-sensei
January 21st, 2018, 05:25 AM
So, this problem showed up for me the other night, and I've gone through and tried each proposed solution, one by one, with no results.
Any new thoughts?

warren-sensei
January 21st, 2018, 05:44 AM
So, this problem showed up for me the other night, and I've gone through and tried each proposed solution, one by one, with no results.
Any new thoughts?

This might be a n00b-type question but, while I can log in from the shell command line, I can't start gnome-shell ("gnome-shell unsupported session type"). I can do "startx", but it loads a slightly different version of Gnome that doesn't quite work the way I had Gnome running under normal conditions - a couple different icons (Ubuntu Software Center, for instance), workspace configuration I set up with gnome-shell extensions, theme is just slightly different... it's probably unrelated to the core problem of the login loop, just Gnome being started weirdly because I'm not going through the usual channels, but confusing.

joeprusa
February 1st, 2018, 09:29 AM
So, this problem showed up for me the other night, and I've gone through and tried each proposed solution, one by one, with no results.
Any new thoughts?

This might be a n00b-type question but, while I can log in from the shell command line, I can't start gnome-shell ("gnome-shell unsupported session type"). I can do "startx", but it loads a slightly different version of Gnome that doesn't quite work the way I had Gnome running under normal conditions - a couple different icons (Ubuntu Software Center, for instance), workspace configuration I set up with gnome-shell extensions, theme is just slightly different... it's probably unrelated to the core problem of the login loop, just Gnome being started weirdly because I'm not going through the usual channels, but confusing.


OK, I found a solution:


sudo apt remove upstart --purge

Thanks to everyone at
https://plus.google.com/u/0/+fuxoft/posts/MHtu75S6JVK

mildayil
February 11th, 2018, 05:04 PM
I can confirm that "sudo apt remove upstart --purge" fixed this problem for me... I tried every hack in the forum and was afraid to purge the upstart because using upstart in Grub was sometimes the only way to get my machine to boot. I took the plunge, and voila, Gnome is beautiful!@

johnnyparafango
February 22nd, 2018, 07:08 PM
Here is how I solved this issue:

In /var/logs/syslog I noticed:
https://photos.app.goo.gl/fY845PclQx53v49w2278102
https://photos.app.goo.gl/fY845PclQx53v49w2

The solution:
278101
Thanks worked for me

ppp.yang
March 5th, 2018, 07:41 PM
This works. Anyone upgrades from 16.04 to 17.10 and has the login loop can try this method. upstarts is not used anymore. Why not delete it!!!!!!!

ww-xs4all
March 26th, 2018, 12:09 PM
I can confirm that "sudo apt remove upstart --purge" fixed this problem for me... I tried every hack in the forum and was afraid to purge the upstart because using upstart in Grub was sometimes the only way to get my machine to boot. I took the plunge, and voila, Gnome is beautiful!@

thx, worked for me

xdz0611
April 6th, 2018, 08:51 AM
Well, I can also confirm that "sudo apt remove upstart --purge" fixed this problem for me... I have upgraded my laptop from 16.04 to 17.10 some days ago. Luckily, I found this solution so I can enjoy gnome desktop now. Thanks everyone.

elad21
April 7th, 2018, 11:03 PM
"sudo apt remove upstart --purge" worked for me as well. It is a bit frustrating that it isn't the first thing to appear in the answers though.

emiliosanchezcortezon
June 24th, 2018, 07:17 AM
Thankkkk you. I upgraded the pc of my wife and i was gettting mad. I could not even load recovery mode. Then I found your solution and ...IT WORKED!. sudo apt remove upstart --purge You save my life.

tquinn10
August 12th, 2018, 05:16 PM
Did not work for me, on 16.04

coolboi567
January 18th, 2019, 09:39 PM
I had the same issue in Ubuntu Bionic 18.04.1 LTS.

Turns out it was caused by installation of
indicator-multiload

I had installed Nvidia-390 driver for my Sony Vaio week back and it was working perfectly.

Most probably, this applet was not compatible with Nvidia driver installed on my machine.

After removing the applet it was working fine.

sudo apt-get remove --purge indicator-multiload