5

The problem is that it suddenly hangs once the service gdm.service starts. I know this because I have set it to display the processes instead of the splash screen and the last thing that comes on the screen is gdm.service, after which the computer hangs.

I do not think the problem is with the graphic drivers. Adding nomodeset to GRUB does not help.

If I go into recovery mode and drop to root shell, it automatically hangs after a few seconds.

Also, for some reason I cannot mount /boot/efi on /dev/sda5.

I have set up dual-boot configuration with Ubuntu and Windows 10.

I get this problem every time I shut down my computer and start it again. Every time I just unplug the things and restart it works but in this situation, it doesn't.

If I use an older version of Ubuntu, I get everything started but the problem is that there is no Bluetooth or networking even though it is connected via Ethernet.

Also the original problem started because I started WiFi and had to restart my computer.

I cannot even ssh into my computer.

If somehow I can get to a tty it hangs there too. I can ssh before it hangs, but as soon as the computer hangs, I cannot execute any commands.

Could someone give me a temporary solution to this? I don't plan on ever shutting it down again. All my research is on the hard drive which is not backed up.

Nmath
  • 12,664

3 Answers3

21
  1. Go into recovery mode
  2. Open root shell prompt
  3. Type sudo apt purge gdm gdm3
  4. Resume to normal boot
  5. Login
  6. Type sudo apt install gdm3 ubuntu-desktop and sudo systemctl restart gdm
  7. Done
3

I got into a similar issue a few days ago and tried different solutions. Finally, running the following command in another TTY while booking solved my problem:

sudo apt install --reinstall ubuntu-desktop
0

You can install the package "lightdm" from recovery mode to use it instead of gdm.

If you need help accessing recovery mode there's an article on Ubuntu help: https://wiki.ubuntu.com/RecoveryMode

In recovery mode you can choose the option "root" and then you can enter commands. Navigate that menu with the arrow keys and enter.

Run "sudo apt install lightdm" and when it asks, choose "lightdm" as the default display manager.

Hope this helps! I had the same issue just now and fixed it this way :)