Fix Unable To Login To Ubuntu After Upgrade

Unable to login to Ubuntu after Kernel upgrade

If you recently upgraded your Ubuntu system and ended up with Kernel 3.19.0.31, you might have a broken system. At the login when you enter your password, it won’t boot into the system rather it just shows the Ubuntu wallpaper. No unity, no launcher, nothing.

Something like this:

Unable to login to Ubuntu

If you are frustrated for not able to login to Ubuntu, don’t fret. There is easy way to fix the issue and I am going to show you how to do that. But first, let me tell you why it happened in the first place.

Reason

If you remember my earlier article about upgrading to Ubuntu 15.10 from Ubuntu 15.04, I had suggested to change the software sources and notify you for pre-released updates.

Software Sources Ubuntu 15.04
Uncheck this option to prevent unstable kernel

That’s the culprit here that let stable Ubuntu 15.04 be upgraded to a Kernel which was not suitable for it. Ubuntu wouldn’t have suggested this upgrade if this option was not selected in the first place.

Solution: Delete the unstable Kernel and use a stable one

That’s what we need to do here. Delete the unstable kernel 3.19.0.31 and use an older but stable version. It’s not that tricky as well. Let’s see how to do it.

Step 1: Boot into older kernel

At login time, when you are at Grub screen, select to boot into Advanced options for Ubuntu.

advanced boot option

In here, you’ll see a number of Linux kernel available for your system. Choose an older Linux Kernel, for example, 3.19.0.30-generic.

choose kernel in ubuntu

You’ll be presented to the usual login screen. Enter your password and this time you’ll successfully boot into the system.

Step 2: Remove troublesome kernel

Once you are in the system, it’s time to remove the unstable kernel. To do that, open a terminal and use the following command:

sudo apt-get purge linux-image-3.19.0-31-generic

This will remove the nasty kernel version 3.19.0-31. I’ll also suggest you to go to Software Sources and uncheck the option of pre-released updates notification. This will save you from future troubles.

Once you have done this, restart your computer and now you should be able to log in to Ubuntu as ever. Remember that this problem is related to a rogue Linux kernel. In general, if you face a similar problem, check this post to fix when your system freezes at login time in Ubuntu.

Similar Posts

  • Sir i have seen your looping section while login of ubuntu, but it is not working for me while login time after upgrade from 18.04 to 19.04 i have tried for many times approximately 10-15 time but it is not working please help me sir please.

  • i have ubuntu 18.4 and upgrade it to ubuntu 18.10 and i have the same problem with your solutions i can fix my problem thanks a lot

  • Hey Abhishek , I don’t think the problem is because of the 3.19.0-31 kernel, but I think it has something to do with Unity, because I recently updated my Ubuntu MATE 15.04 to the said kernel & I didn’t face any problems. I don’t know it could be because of the DE.

    • Yes. I have this issue on my computer too. As Gunnar Hjalmarsson wrote on askubuntu: “Buggy versions of the Linux kernel were uploaded on October 7 to
      trusty-proposed and vivid-proposed. Corrected replacement packages are
      about to be uploaded – see bug #1503655. Version 3.13.0-66.107 (trusty) will be replaced by version 3.13.0-66.108 Version 3.19.0-31.35 (vivid) will be replaced by version 3.19.0-31.36”. And in update of this post he wrote:
      “The corrected packages have now replaced the buggy ones in trusty-proposed and viviv-proposed.”

      • Hi, I have an issue with my laptop maybe you can help me with. I booted up my laptop Linux Mint 2020 and it went to like an install interface so I pushed enter and it did its thing and booted into the ubuntu maroon login interface and i cant find anything on the web to change it back to a Linux Mint login interface. thanks in advance