I have a small issue with my Ubuntu (I think After an upgarde).
When I try to login (Login Screen), I get disconnected and get back to the screen (again & again).
I tried:
- Trying to login with others Desktop environements.
- Booting from old kernel.
- log in via command line [
apt-get update && apt-get upgrade
]. - removing
~/.gconf
directory. sudo apt-get install --reinstall ubuntu-desktop
andsudo apt-get install unity
None of these solutions worked.
Best Answer
Press Ctrl+Alt+F3 and login into the shell using your username and your password. In this case username will be your username you set when you installed Ubuntu.
Now run
ls -lah
and look for the output line that ends with .Xauthoritythen you need to do
chown username:username .Xauthority
and try logging in.Else, do
ls -ld /tmp
. Check for the first 10 letters in the left: they should read exactly so:drwxrwxrwt
.Else, you need to do
sudo chmod a+wt /tmp
and check again.If not both, I'd recommend you either
Make sure you are connected to internet with DHCP on.
sudo apt-get purge lightdm
sudo apt-get update
sudo apt-get install lightdm
dpkg-reconfigure lightdm
Now type
sudo shutdown -r now
to restart.