My ubuntu system is asking login again and again when i even entered the correct login details?
9,286
Solution 1
I was facing this issue after adding export PATH=$JAVA_HOME/bin:$PATH
in /etc/environment
and /etc/profile
files.
Solution:
On Login Page
- Go to the command line - Ctrl+Alt+F1 or Ctrl+F2
- Enter your username & password
sudo nano /etc/environment
and removePATH=$JAVA_HOME/bin:$PATH
sudo nano /etc/profile
and removePATH=$JAVA_HOME/bin:$PATH
Note: If the sudo and nano commands are not working for you, try this commands
/usr/bin/sudo /usr/bin/nano /etc/environment
/usr/bin/sudo /usr/bin/nano /etc/profile
Solution 2
I recently faced the same problem in my Ubuntu 14.04. I tried every solution present on Internet. after getting frustrated I tried to do something similar to what I thought is appropriate. I deleted the .profile file and restart system, after that I was able to login to same user. Following are the steps :
- Press CTRL + ALT + F3 to go to TTYs.
- Type:
sudo mv .profile .profile.backup
- Then Type:
sudo reboot
Related videos on Youtube
Author by
user127263
Updated on September 18, 2022Comments
-
user127263 over 1 year
I am using Ubuntu 12.04 in Dell desktop. I am unable to login into my desktop. when i enter my login details its just coming again to login page without entering into my dashboard? Please help me...
-
Eliah Kagan about 11 yearsDoes logging in as guest work? Does it work if you select a different session type, like Ubuntu 2D? Also, are you able to log in non-graphically in a virtual console? To attempt this, press Ctrl+Alt+F1 and enter your username and password as prompted. As you enter your password, you won't see any placeholder characters (like
*
). That's OK, just type it in and press enter. If you're able to log in, please rundf -h
and report the output. (The best way to provide this information is to edit your question.) -
Eliah Kagan about 11 yearsClose voter(s): This might be a duplicate of something, but it is not a duplicate of any question about how to reset a password. Here, the problem is that login succeeds but the display manager fails to start a desktop (or starts one but it terminates immediately).
-
gertvdijk about 11 yearsPlease use the search on this site using
login screen loop
and you'll find some similar questions. Attempt proposed solutions from there and if it fails, include the steps and results here. With the currently provided information it's not answerable, I'm afraid.
-
-
Arthur about 5 years
Ctrl+F2
for Ubuntu in VirtualBox brings the command prompt