Ubuntu MATE stuck at loading screen (before login promt)

Broxigar

As mentioned in the title, I boot my PC and select the Ubuntu OS that I have and then it gets stuck on an infinite loading screen.

I tried setting appending nomodeset to the grub but that didn't help me. Any suggestions?

After hitting escape on the loading screen to get prompted with some information about the system operations I found the following:

[  OK  ] Starting User Runtime Directory /run/user/...
[FAILED] Failed to start Light Display Manager
See 'systemctl status lightdm.service' for details
[  OK  ] Finished User Runtime Directory /run/user/... .
         Starting User Manager for UID 10000...
[  OK  ] Started User Manager for UID 10000...
[  OK  ] Stopped Light Display Manager. 
         Starting Light Display Manager.
         Starting RealtimeKit Scheduling Policy Service.
[  OK  ] Started RealtimeKit Scheduling Policy Service.
[FAILED] Failed to start Light Display Manager.
         Starting Light Display Manager...
[FAILED] Failed to start Light Display Manager.
See 'systemctl status lightdm.service' for more details.

And then it continues with the aforementioned failed start Lightdm messages. At the end of the prompts, I see

A start job is running for Hold until the boot process finishes up ( <mins> / no limit)

where <mins> is the time until the infinite loading process began I presume

Plus I try to get prompted a terminal via (alt + ctrl + f1/f2) to view the file but I cannot get any kind of terminal. It simply takes me back to the loading screen and then back to the messages.

But if I reboot the machine and then select advanced options for ubuntu from the OS select menu I can get a root shell prompt. But I do not have internet access since I tried running a sudo upgrade and the fetches failed.

So how do I fix the issue without networking ?

Broxigar

So what the main problem was that the display manager was not working correctly. The most common solutions/suggestions that you can find on this topic (e.g., [1],[2]) do recommend (among others) that you dpkg reconfigure the lightdm package. But in order to do so, you need some terminal prompt.

As mentioned above I was not able to access any kind of terminal by using ctrl + alt + f1/f2. What I did actually, was to access ubuntu in recovery mode and from there get a root terminal in order to proceed with the reconfiguration of the lightdm package.

After I logged in as a #root I did sudo dpkg-reconfigure lightdm and then rebooted my machine. The error persisted and so I tried to remove completely and then re-install the display manager. I followed the same steps, selected Ubuntu Recovery mode from the OS select menu, and then I selected enable networking before I open a root terminal in order to have a network connection and be able to fetch the package.

Seems that I've opened Pandora's box at this point. There is a bug ( see [3],[4] ) in the recovery mode, and although I am using UbuntuMATE 20.04 and the error concerns an older version of the kernel apparently it still exists (?). So...I had first to enable the Networking of my system manually.

I removed (sudo rm) the dangling link of /etc/resolv.conf -> /run/resolvconf/resolv.conf and then I created another resolv.conf file at /etc/ dir with valid DNS servers. I saved the file and restarted the network manager. After that I tried ping 8.8.8.8 and I got a response.

# resolv.conf file 
nameserver 8.8.8.8 # primary   DNS server for Google DNS
nameserver 8.8.4.4 # secondary DNS server for Google DNS

Since I now had access to the internet I did the following:

  1. sudo apt purge xorg lightdm
  2. sudo apt autoremove
  3. sudo apt install xorg lightdm

After rebooting the machine I was able to log-in successfully.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Ubuntu VirtualBox stuck before login screen

From Dev

5 seconds grey screen before ubuntu MATE login screen

From Dev

Ubuntu 14 stuck at loading screen

From Dev

Ubuntu 14.04 booting stuck at loading screen

From Dev

Ubuntu 19.10 keeps stuck on loading screen

From Dev

No login screen/Stuck at Ubuntu logo in 18.04

From Dev

Ubuntu 18.04 stuck at purple loading screen after new update

From Dev

12.04 stuck at the login screen

From Dev

12.04 stuck at the login screen

From Dev

Ubuntu works without nvidia but stuck at login screen with nvidia

From Dev

Ubuntu works without nvidia but stuck at login screen with nvidia

From Dev

Ubuntu 19.04 VNC stuck after login screen of LightDM

From Dev

Login Screen background changes itself before login in (ubuntu 16.04)

From Dev

What is Ubuntu mate login manager

From Dev

Ubuntu is stuck on an unusual screen

From Dev

Stuck on Ubuntu Flash screen

From Dev

Android Studio stuck on loading screen

From Dev

Software Center stuck on loading screen

From Dev

After upgrading to Ubuntu MATE 18.04, keyboard layout in login screen defaults to US

From Dev

My computer is stuck on login screen

From Dev

My computer is stuck on login screen

From Dev

Stuck at login screen on fresh install

From Dev

Loading screen before <head>

From Dev

Loading screen before <head>

From Dev

Ubuntu 15.10 stucks before login screen on VM Workstation

From Dev

Ubuntu 18.04 intel integrated graphics error after nvidia update. Stuck at login screen

From Dev

Ubuntu 18.04 intel integrated graphics error after nvidia update. Stuck at login screen

From Dev

Ubuntu 12.04 LTS always stuck in Login First time, but to recovery screen second time

From Dev

Ubuntu 12.04 LTS always stuck in Login First time, but to recovery screen second time

Related Related

  1. 1

    Ubuntu VirtualBox stuck before login screen

  2. 2

    5 seconds grey screen before ubuntu MATE login screen

  3. 3

    Ubuntu 14 stuck at loading screen

  4. 4

    Ubuntu 14.04 booting stuck at loading screen

  5. 5

    Ubuntu 19.10 keeps stuck on loading screen

  6. 6

    No login screen/Stuck at Ubuntu logo in 18.04

  7. 7

    Ubuntu 18.04 stuck at purple loading screen after new update

  8. 8

    12.04 stuck at the login screen

  9. 9

    12.04 stuck at the login screen

  10. 10

    Ubuntu works without nvidia but stuck at login screen with nvidia

  11. 11

    Ubuntu works without nvidia but stuck at login screen with nvidia

  12. 12

    Ubuntu 19.04 VNC stuck after login screen of LightDM

  13. 13

    Login Screen background changes itself before login in (ubuntu 16.04)

  14. 14

    What is Ubuntu mate login manager

  15. 15

    Ubuntu is stuck on an unusual screen

  16. 16

    Stuck on Ubuntu Flash screen

  17. 17

    Android Studio stuck on loading screen

  18. 18

    Software Center stuck on loading screen

  19. 19

    After upgrading to Ubuntu MATE 18.04, keyboard layout in login screen defaults to US

  20. 20

    My computer is stuck on login screen

  21. 21

    My computer is stuck on login screen

  22. 22

    Stuck at login screen on fresh install

  23. 23

    Loading screen before <head>

  24. 24

    Loading screen before <head>

  25. 25

    Ubuntu 15.10 stucks before login screen on VM Workstation

  26. 26

    Ubuntu 18.04 intel integrated graphics error after nvidia update. Stuck at login screen

  27. 27

    Ubuntu 18.04 intel integrated graphics error after nvidia update. Stuck at login screen

  28. 28

    Ubuntu 12.04 LTS always stuck in Login First time, but to recovery screen second time

  29. 29

    Ubuntu 12.04 LTS always stuck in Login First time, but to recovery screen second time

HotTag

Archive