Cannot log in with correct password after installing VirtualBox and Genymotion and editing /etc/profile

23,366

Open the terminal using CTRL + ALT + F1 (or whatever key works for you).
While in your home directory, type the command cat .xsession-errors.

This will give you the error that is causing the login screen loop. In my case it was an error in the /etc/profile that I had edited last night.

Share:
23,366

Related videos on Youtube

An SO User
Author by

An SO User

Updated on September 18, 2022

Comments

  • An SO User
    An SO User over 1 year

    This is a rather bizarre problem that I am experiencing. My Ubuntu 14.10 does not let me log in despite proper password. Here is what happens:

    I try to log into my machine by entering the password. The password gets accepted, my laptop screen blinks, and brings me back to the login screen.

    After having tried this many times I tried Guest Session. When I click on login in guest session, the same story repeats itself.

    The only thing different from yesterday (when I could properly log in) is that I installed virtual box and Genymotion for Android development. Also, I made a simple change to /etc/profile to have genymotion in my path.

    How do I solve this?

  • Socceroos
    Socceroos about 9 years
    If you have no easy way to copy/paste the output, the just do this: sudo apt-get install pastebinit && tail -50 /var/log/syslog | pastebinit
  • Zanna
    Zanna about 7 years
    OP said nothing about nvidia drivers though
  • Anwar
    Anwar almost 7 years
    Whay was the error?
  • An SO User
    An SO User almost 7 years
    @Anwar it was some PATH related issue. I had a stray space in the path so it broke.