您的位置:首页 > 其它

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

2017-04-11 16:53 344 查看
出现这个问题的时候, 我是一脸懵逼的, 昨天还好好的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


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

内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: