Upgrade fails to complete, LightDM not starting Display Manager properly, no session and black screen

Hello there, I've got problem with black screen after splash screen when attempt to login, lightdm cannot be start.
This happen when I've got cut-off power accidently while system upgrade running on progress. (just regularly upgrading the kernel and small other app upgrade).
After I've got power back, after splash screen it stuck on black screen with little underline blinking on top-left corner of screen.

So I try to log in to tty1-teminal. try fixing and resume the last "interrupted" system upgrade, done and reboot. But black screen still there.

Next I'm try to restarting lightdm (I think this cause the problem)
after do "lightdm stop" or "lightdm start" I've got error on screen
"Error can't open /lib/module/4.15.0.151/update/dkms"

Are it's this mean the problem from the kernel?
So try to reboot from older kernel and still get black screen/lightdm error

what should I do? I can't work well just with terminal. so I some need help.

18.04@32bit
Take a look screenshot below hope this can help to figure out the problem

(Note: Addressing the general case of power-loss during an upgrade, before it reaches a state telling you that the upgrade was successful. Applicable to all releases.)

You said it yourself:

That tells me that

  • the upgrade process did not complete,
  • which in turn did not give you a complete OS installation or configuration,
  • which means that a "sane" installation did not happen,
  • which is what prevents LightDM from performing its portion of the startup process successfully.

If you don't have a second bootable drive, you would need to boot from a "Live" ubuntu ISO on either a CD or USB stick.

Open a MATE terminal session, then, from there, you need to do a proper full backup of all contents of all partitions that you have/had on the disk drive where the installation failed and copy it onto another disk drive ... so that you can reclaim and restore the good parts from that backup after you repaired the OS.

Once that data is "safely" put aside, because of the "corrupted" installation, you need to make a "fresh installation from scratch", not an upgrade.

Then, again from the terminal session, you need to collect information about your old configuration (if that is possible) to be able to rebuild the same disk configuration (IF that is what you want) to be able to answer questions during the disk setup step (during which it asks you to set up partitions on the disk), before attempting to do the fresh "install".

Only when that is all done, and you feel you have enough to recreate what you had before, THEN, and only then, you can start the installation process for a clean NEW installation.

If that is done right, all non-root partitions which you previously had should still be there, with their old content, as long as you did everything correctly during the "disk setup" phase and chose "different layout", which will show you what is on the disk as it is, and you can tweak what is there to fit your needs.

If the installation completes to the point of asking you to reboot, only then can you say that you have a bootable OS ... and the UbuntuMATE installation that will reboot properly, at which point it should never behave in such a way that you would become aware that LightDM was even involved in the process. :slight_smile:

2 Likes