Ubuntu升级或安装软件后出现Failed to load session "ubuntu",在登陆界面无法登陆,用户登陆失效,输入密码后返回登陆界面,无限循环。解决方法如下:
先以gnome登陆,然后执行如下操作:
[php]sudo apt-get update
sudo apt-get install ubuntu-desktop
sudo apt-get -f install
sudo dpkg-reconfigure ubuntu-desktop
sudo reboot
sudo apt-get install gnome-session
sudo apt-get install lightdm
sudo apt-get install unity-greeter
sudo dpkg-reconfigure lightdm[/php]
执行完成后就可以正常登陆了