Fix Frozen After Login In Ubuntu 14.04

Recently, I met the frozen problem after I log into Ubuntu. I searched around the solutions and summery them here.

What’s the problem?

After boot into Ubuntu 14.04, you enter your credential and the system just hangs up, freezes. If you are lucky, you might see mouse cursor, background wallpaper but nothing else.

Solutions may work

Sincere you are in the frozen system, you can use Alt+Ctrl+F2 to get into command line interface. Then type your username and password to login. Or you can reboot your system and enter the Ubuntu recovery model then choose “root Drop to root shell prompt“. After you get into command line interface, you may like to try the following solutions.

1. Re-install Unity in Ubuntu 14.04

Try the following commands one by one to re-install Unity desktop.

$ sudo su
$ apt-get update
$ apt-get install --reinstall ubuntu-desktop
$ apt-get install unity
$ reboot

2. Re-install Graphics Card Driver in Ubuntu 14.04

If the first try doesn’t work (It happened to me), you may need to re-install NVIDIA Driver. Try the following commands one by one.

$ sudo su 
$ apt-get update
$ apt-get install --reinstall ubuntu-desktop
$ apt-get install unity
$ apt-get remove --purge nvidia*
$ reboot

If it doesn’t work for you (It happened to me ToT), you may try the following steps:

$ sudo apt-get install nvidia-current
$ sudo reboot

Hope you can login your Ubuntu now. But if your system hang out after install nvidia-current (Black screen with a blinking cursor) and you have installed CUDA on your machine, you may mass up the different versions of nvidia driver. What you need to do is un-installing the Ubuntu’s nvidia driver and install the driver from NVIDIA website. So get into the command lines interface via Ubuntu Recover Model and  try these steps.

First, remove the current Nvidia graphics card driver

$ sudo apt-get remove --purge nvidia-* 

Second, download & Install Nvidia Driver 331.38 (you may want new version)

For 32 bit (x86):

$ cd && wget

For 64 bit (x86_64):

$ cd && wget

And then,

$ chmod +x NVIDIA-Linux-*
$ sudo sh NVIDIA-Linux-*
$ sudo reboot

Finally, I got my problem fixed. Hope it will help.

60 thoughts on “Fix Frozen After Login In Ubuntu 14.04

  1. When I tried the last option, I get the following message:
    You don’t appear to have nvidia GPU supported by 331.38 driver installed in this system.

    After carrying through I get message that installation has failed. I am totally lost as what to do. I have been searching forums and blogs all day with no avail.

    I can log in with empty desktop with background image zoomed in and mouse cursor moving around but no icons, no panels and mouse clicks are not working.

  2. I tried the above steps but i am not able to install the nvidia driver as given in last step . I am getting the machine is using X server something.. how to go about it?

    Thank you.

    • I guess you tried to install Graphics card driver when the X server is on. So you can to use “Alt + Ctrl + F1” to enter the terminal model. Then type “sudo service lightdm stop” to stop X server. Then you should install the nvidia driver.

  3. Thank you very much. I have been having this issue for four days before i finally stumbled on your post and it helped me alot. Thanks once more.

  4. Brilliant, thanks very much – I am slowly getting to understand Ubuntu and you have saved me a lot of grief and time!

  5. Pingback: Where can I find the right GPU driver for a MSI M670 notebook runnig Ubuntu 14.04.2? | DL-UAT

  6. Me too same problem….how to fix this

    NVIDIA Accelerated Graphics Driver for Linux-x86_64 (331.38)

    WARNING: You do not appear to have an NVIDIA GPU supported by the 331.38 NVIDIA Linux graphics driver installed in this system. For further
    details, please see the appendix SUPPORTED NVIDIA GRAPHICS CHIPS in the README available on the Linux driver download page at


    I’m getting this error

  7. Thank Jiakai

    Until I found your page I had tried many things in many places including the Ubuntu forum. I had even done a complete re-install and had the same thing happen once I installed the Nvidia driver.

    $ sudo su
    $ apt-get update
    $ apt-get install –reinstall ubuntu-desktop
    $ apt-get install unity
    $ apt-get remove –purge nvidia*
    $ reboot

    Fixed it for me.

  8. Pingback: Freezes at login: MSI laptop, Ubuntu 14.04. topic | ubuntu

  9. Just wanted to say that this totally helped me out, thank you again for writing this up. I installed 304.117, that was the version that worked for me (that was after installing three other versions that did not work for me). Thanks you again!

  10. Pingback: The Nightmare of Upgrading Ubuntu | Ghosal's Brain Dump

  11. Thanks – somehow installing nvidia, unity was uninstalled. So the 1st option got me going again… you have saved days of rework if we add up all of the others 🙂

  12. Thanks a lot… it really helps!

    I found that many of CUDA developer met this problem when they first reboot their Ubuntu, but I met this after several times reboot….

    Thanks again for saving my day!

  13. i was able to solve the problem using second method, but once i shut down ubunto and logged in later i was facing the same problem. please help me.

  14. Option 2 worked for me, woohoo and many, many thanks.
    Shame that the Ubuntu forums/help could not provide the solution or indeed fix the problem in the first place !!!

  15. Thank you! Feel like I made a lot of progress with this (now 16.04 is stable, no flicker, able to boot from disk) but after putting in password, just get background screen. I also can’t get to any TTY. Will keep trying….but let me know if I’m missing anything.

  16. Just Thanks a Lot!
    $ sudo apt-get install nvidia-current
    $ sudo reboot

    solved the problem for a ubuntu 16.04 zbook studio just installed on a hp zbook studio

  17. first method worked for me too, on ubuntu 16.04, that save a looooot of my time. thank u and God bless,
    may i translate your article and post in my blog? i will attach the link to this web to, with your permission of course. thank u anyway for write this article 🙂

  18. THANK YOU!!!
    I literally Googled and ran dozens of commands from sites like “AskUbuntu” to no avail. But I ran those two lines and BAM! Fixed my computer and my original problem (Inaccurte resolution) that caused the crash when I tried fixing that LOL

  19. Thanks lot. I struggled for 2 days to solve this issue.
    #sudo apt-get install nvidia-current
    #sudo reboot
    This 2 lines worked for me.

  20. Thank you!!!!! It was useful for me, after the installation everything was ok, but after trying to install udpates from the “Ubuntu Software” help, after restarting I got the problem. So thank you very much!!!!! 😀

Leave a Reply

Your email address will not be published. Required fields are marked *