Ubuntu图形界面突然崩溃

在多工作区切换时Ubuntu图形界面崩溃

重启图形画面后tty7黑屏

sudo service lightdm restart

查看日志/var/log/lightdm/x-0.log

Ubuntu图形界面突然崩溃_第1张图片

查看日志/var/log/Xorg.0.log似乎是配置文件被修改

Ubuntu图形界面突然崩溃_第2张图片

尝试用/etc/init.d/lightdm start时报错如下:

/etc/modprobe.d is not a file
/etc/modprobe.d is not a file
/etc/modprobe.d is not a file
/etc/modprobe.d is not a file
update-alternatives: error: no alternatives for x86_64-linux-gnu_gfxcore_conf

重新设置配置文件:

sudo nvidia-xconfig --allow-empty-initial-configuration

遇到装GPU显卡驱动时遇到的图形界面登录循环验证问题,但是此时我是通过teamviewer远程连接,无法使用开机启动设置BIOS,发现是home下.Xauthority的权限问题,修改文件权限为普通登录用户

再重新启动图形界面即可

sudo service lightdm restart

参考链接:

https://blog.csdn.net/Hover_May/article/details/81236886

https://askubuntu.com/questions/457850/x-server-doesnt-work-on-ubuntu-14-04-what-may-be-happening

你可能感兴趣的:(Linux)