I'm having trouble starting LXDE on Ubuntu Server.
I installed Ubuntu Server 22.04.4 LTS on a VM, logged in and run:
Then installed LXDE:Code:sudo apt update && sudo apt upgrade
After that i rebooted and when entering the password I got the error message: "Failed to start session" and nothing else happened.Code:sudo apt install lxde
If installing xinit package i can succesfully start LXDE from the command line with startx command.
But this doesn't solve the problem cause if i try to login from LightDM, i always get that message.
The only wordaround i found to make this work is to install lightdm-gtk-greeter package, reboot, login from the gtk greeter at least once.
After that i can even remove lightdm-gtk-greeter package and purge it, and the default ubuntu greeter for LightDM will work as expected and no longer give "Failed to start session" error.
I'm wondering why that error occurs and if there's a proper way to fix it without the lightdm-gtk-greeter workaround.
PS: installing lubuntu-desktop package is not an option as i dont need any of the stuff that it comes with. I just need a minimal graphical interface.
Bookmarks