after typing my password and press enter it takes me back to the page and ask to me to enter my password again I can login as a guest and am able to login in the terminal ( ctrl+alt+F1 )
but not with the graphical interface
When logged in to the terminal look for a file in home directory called .Xauthority (hidden file) use ls -al
. If the file is owned by root use sudo chown <user>:<user> .Xauthority
.
man chown
. Is the .Xauthority file owned by root?
ls -al
you should see a file -rw------- 1 myuser myuser 179 Jun 11 14:56 .Xauthority
, if instead of saying "myuser" it says "root" then run the chown command. I should note Alaa's method should work just as well, if it is easier for you. Instead of changing the ownership it will force the creation of a new file with the correct ownership.
You may have a problem with the keyboard/language settings? It seems the initial installation determines the layout for the login page, and even if you have changed the default keyboard layout, the login keyboard layout does not change with it. This happened to me and to Vic. Since 11.10 lightDM is used and it is described here. For 12.04 the procedure is described here, but it seems to be buggy.
mv ~/.Xauthority ~/.Xauthority.old
and then try to login to the GUI. If it doesn't work at first, try a reboot. If it doesn't work, dotail /var/log/lightdm
and tell us what the output is.mv ~/.Xauthority ~/.Xauthority.old
? And for the second command, I'm sorry, it should besudo tail /var/log/lightdm/lightdm.log
. Give us the output of this command.