1.重装桌面
sudo apt-get update
sudo apt-get install ubuntu-desktop
sudo apt-get install gnome-core lightdm
sudo dpkg-reconfigure lightdm
2.查看使用的桌面显示管理器
cat /etc/X11/default-display-manager
输出: /usr/sbin/lightdm
sudo apt-get update
sudo apt-get install ubuntu-desktop
sudo apt-get install gnome-core lightdm
sudo dpkg-reconfigure lightdm
cat /etc/X11/default-display-manager
输出: /usr/sbin/lightdm