Stuck on blue screen while booting the system [duplicate]

Solution 1:

I fixed this by rebooting. At the login screen, I switched to a terminal ctrl+alt+F1 and then running sudo apt-get upgrade. That would not run, but I was told to use sudo dpkg --configure -a. After I ran sudo dpkg --configure -a, then I ran sudo apt-get upgrade. Lastly, I ran reboot. This solved the problem.

Solution 2:

This happened to me a couple days ago. I waited until it said it had internal error, and I hard rebooted it (holding down power button).

On Ubuntu bootup, you have your OS selection screen. It's a purple screen showing your possible options for bootup. Use the arrow keys and goto Advanced Options for Ubuntu.

And then select: Ubuntu, with Linux 4.4.0-31-generic (recovery mode)

It'll run a lot of code until you reach a link screen.

Do the fsck option, and it should clean and fix your OS, and do the dpkg option. It will repair the packages. And then reboot. This fixed mine.

And then if you want you can do clean to free up some space

Hope this helps, Dallin