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

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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值