出现这个问题的时候, 我是一脸懵逼的, 昨天还好好的Ubuntu 14今天怎么抽风了… 试了好多方法,Ctrl+Alt+F2进入命令行模式, 各种命令乱试, 或者Ctrl+Alt+F7进入图形界面试, 还手残的卸载了GTX1060的驱动, 不断的 sudo reboot, 毫无起色…
最后Google Ubuntu loop login, 发现StackExchange的这个不错: Ubuntu gets stuck in a login loop, 把高票的解决办法摘录如下:
Did you end up here after running
sudo startx
? Nevertheless:
PressCtrl+Alt+F3
and login into the shell.
Now runls -lA
. If you see the line
-rw------- 1 root root 53 Nov 29 10:19 .Xauthority
then you need to dochown username:username .Xauthority
and try logging in.
Else,dols -ld /tmp
. Check for the first 10 letters in the left: they
should read exactly so:drwxrwxrwt
.
drwxrwxrwt 15 root root 4096 Nov 30 04:17 /tmp
Else,you need to dosudo chmod a+wt /tmp
and check again.
If not both,I’d recommend you either
1.dpkg-reconfigure lightdm
2. or uninstall,reinstall it.
Now pressAlt+->
until you reach the login screen again,and restart.
顺便附上GTX1060驱动的安装方法:
sudo add-apt-repository ppa:graphics-drivers/ppa #别忘了打回车
sudo apt update
然后, 系统设置->软件和更新->附加驱动: