Today I switched on my laptop and ubuntu 18.04 stuck on the purple loading screen after boot. As I have another ubuntu boot on my drive, I boot into it and everything was working normally.
it boots on recovery mode.
How do I solve it?
I tried:
Problem keeps the same.
Ubuntu 18.04
This issue can have two reasons:
1- your system has Nvidia graphics card and its driver is not installed.
for this you should follow these steps:
When you start your system you can see the grub menu that has options like
Ubuntu
,Advanced options for Ubuntu
and ...( I have a Asus laptop that I must press Esc on to see the grub menu) selectUbuntu
but don't press Enter, press E instead.You will see boot parameters for Ubuntu. In this step we are going to use an open source graphics instead of Nvidia temporarily to install the right graphics driver. In the line which starts with
linux
add this at the end of the line:nouveau.modeset=0
after... quiet splash
like this:quiet splash nouveau.modeset=0
Now you can press F10 to continue booting and you should see the login page and it won't be stuck. (don't do the second reasons solution if you logged in successfully. follow the final step)
2- your display manager has a problem.
When you upgrade to 18.04, Ubuntu uses gdm as a default display manager that has more code complexity than lightdm. so you should change it to lightdm (even if your Ubuntu uses lightdm do it anyway because maybe lightdm is broken)
Go to recovery mode and bring up the shell (with networking enabled) as root now type these commands:
Select lightdm as default display manager and reboot you should see the login page.
I recommend you to do both solutions at the same time if you are not sure which to use.
Final Step
Now after logging in you should install the right version of Nvidia graphics on your system. Type the following commands:
Now you can see the drivers available for you Nvidia graphic card install the recommended version like this (the version can be different on your system but mine is 390):
Warning: don't add any PPA for Nvidia
After installation is complete reboot your system normally and it must work.