Can’t boot into Ubuntu after upgrading.

When you upgrade to any new version of Ubuntu you will not be able to open Ubuntu. There might be a number of reasons. This post will help you to solve the problem of not completing the 
installation of new packages.

To solve this, boot in to Ubuntu. You will be stuck in the Ubuntu Logo.

In there press ALT + CTRL + F1.
You will get a terminal.
Login to your account there in the terminal by typing your username first and password second.
Then Enter the following commands in the terminal.

sudo -i

You will be asked for your password. Then the next command.

sudo dpkg –configure -a

Wait for 10 Minutes or more for completing it depending on your RAM.
After completion reboot your computer using the following command.

sudo reboot 

You can now boot into Ubuntu.