I had this Ubuntu infinite login loop problem, and after searching the forum, I did these steps.
Ctrl + Alt + F6
ls -lah
I found -rw------- 1 root root 20 Dec .Xauthority
So I did chown username:username .Xauthority
as mentioned by someone in the forums.
After this I tried to login from my user, and it worked, but now I'm facing a new problem, that is, the Launcher and Panel are missing. Did I do anything wrong ?
Further I did
dconf reset -f /org/compiz/
But it gave an error
error: cannot autolaunch D-Bus without X11 $DISPLAY
How do I solve this problem?
Finally, I solved this problem, though I'm not sure which one below solved the problem, since I tried both steps successively.
Try 1:
Ctrl+Alt+F1
Try 2:
To get back to the login screen
I would not suggest that you did something wrong. I encountered the same issue with unity through installing updates.
it seems the fix is to run
dconf reset -f /org/compiz/
which resets the compiz profiles and plugins associated with unity.
after the command you could reboot or simply restart lightdm (
sudo service lightdm restart
)and log back in.Second Solution
It may be worth adding
export DISPLAY=:0
to the command which would make my first suggestion change toexport DISPLAY=:0 && dconf reset -f /org/compiz/
Alternatively you could log in then swap to a tty (crtl+alt+F1)and send a terminal to the desktop, which can be achieved by
export DISPLAY=:0 && gnome-terminal
then hitting ctrl+alt+f7 to get back to the GUI and then try executingdconf reset -f /org/compiz/
from the terminal that should be on your unity-less desktop.sorry if this is confusing , but im not sure how else to get around your error