https://askubuntu.com/questions/1041054/login-to-black-screen-in-18-04
ogin to black screen in 18.04
I recently upgraded to 18.04. Currently, I get to the login screen just fine. If I attempt to login, I am confronted with a black screen and nothing more. I can drop to the terminal at the login screen, login through the terminal, enter startx and now I'm at my desktop. I am pretty sure that this is an nvidia issue as I'm continuously getting crash reports popping up for libnvidia-gl-390 install, but when i try to install this manually from the terminal, no issues.
Output of "find ~/ -mount ! -user michael"
sudo find ~/ -mount ! -user michael
[sudo] password for michael:
/home/michael/.wget-hsts
/home/michael/Downloads
/home/michael/.dbus
/home/michael/.dbus/session-bus
/home/michael/.dbus/session-bus/cd82760ca7c64274a03b987139d8bbd9-1
/home/michael/Videos
/home/michael/Documents
/home/michael/Pictures
/home/michael/Public
/home/michael/Music
/home/michael/Desktop
/home/michael/.cache/dconf
You have run some GUI application that has taken ownership of files in your personal area. The login manager isn't working because it doesn't have sufficient permission for the configuration files.
You can retake ownership of the files in your personal space by running this command:
$ sudo chown -R $(whoami):$(whoami) ~/
After running this command, you won't have any problems logging in.
Also insure the integrity of your login manager. You can do this by installing lightdm with:
$ sudo apt install lightdm
At the command configuration prompt select Lightdm.
You can toggle between the Lightdm login manager and the Gnome login manager with this command:
$ sudo dpkg-reconfigure lightdm
博主升级到Ubuntu 18.04后,登录出现黑屏问题,可通过终端登录并启动桌面。推测是nvidia问题,也可能是GUI应用占用个人文件权限,导致登录管理器权限不足。可通过命令重新获取文件所有权,安装lightdm确保登录管理器完整性。
1946

被折叠的 条评论
为什么被折叠?



