將/usr/share/lightdm/lightdm.conf.d/50-ubuntu.conf的內容ubuntu
[SeatDefaults]user-session=ubuntu更改成:session
[SeatDefaults]autologin-user=rootuser-session=ubuntugreeter-show-manual-login=trueio