Ubuntu14登录不进去循环登录的解决办法

出现这个问题的时候, 我是一脸懵逼的, 昨天还好好的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:
Press Ctrl+Alt+F3 and login into the shell.
Now run ls -lA. If you see the line
-rw------- 1 root root 53 Nov 29 10:19 .Xauthority
then 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.
drwxrwxrwt 15 root root 4096 Nov 30 04:17 /tmp
Else,you need to do sudo 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 press Alt+-> until you reach the login screen again,and restart.

顺便附上GTX1060驱动的安装方法:

sudo add-apt-repository ppa:graphics-drivers/ppa  #别忘了打回车
sudo apt update

然后, 系统设置->软件和更新->附加驱动:

相关文章

文章浏览阅读2.3k次,点赞4次,收藏22次。最近安装了CARLA预...
文章浏览阅读6.3k次,点赞5次,收藏15次。在清华镜像中下载U...
文章浏览阅读5k次。linux环境, python3.7.问题描述: 安装...
文章浏览阅读4.2k次,点赞4次,收藏17次。要安装这个 standa...
文章浏览阅读894次,点赞51次,收藏31次。在安卓使用vscode主...