Details
Session returned error code 1
I was attempting to install VNC Server via this walk-through, but this is where I went wrong (hindsight being 20/20):
sudo apt install xfce4 xfce4-goodies
I have created a new sudoer account, but I really want to get my original one working again. When I try to login to it, I see this:
Here is the last bit of my /var/log/lightdm/lightdm.log
file:
[+0.60s] DEBUG: Acquired bus name org.freedesktop.DisplayManager
[+0.60s] DEBUG: Registering seat with bus path /org/freedesktop/DisplayManager/Seat0
[+1.46s] DEBUG: Got signal 10 from process 808
[+1.46s] DEBUG: XServer 0: Got signal from X server :0
[+1.46s] DEBUG: XServer 0: Connecting to XServer :0
[+1.49s] DEBUG: Seat seat0: Display server ready, starting session authentication
[+1.49s] DEBUG: Session pid=828: Started with service 'lightdm-greeter', username 'lightdm'
[+1.50s] DEBUG: Session pid=828: Authentication complete with return value 0: Success
[+1.50s] DEBUG: Seat seat0: Session authenticated, running command
[+1.50s] DEBUG: Session pid=828: Running command /usr/lib/lightdm/lightdm-greeter-session /usr/sbin/io.elementary.greeter
[+1.50s] DEBUG: Creating shared data directory /var/lib/lightdm-data/lightdm
[+1.50s] DEBUG: Session pid=828: Logging to /var/log/lightdm/seat0-greeter.log
[+1.59s] DEBUG: Activating VT 7
[+1.59s] DEBUG: Activating login1 session c1
[+1.59s] DEBUG: Seat seat0 changes active session to c1
[+1.59s] DEBUG: Session c1 is already active
[+1.90s] DEBUG: Greeter connected version=1.26.0 api=1 resettable=false
[+2.36s] DEBUG: Greeter start authentication for drewadmin
[+2.36s] DEBUG: Session pid=975: Started with service 'lightdm', username 'drewadmin'
[+2.37s] DEBUG: Session pid=975: Got 1 message(s) from PAM
[+2.37s] DEBUG: Prompt greeter with 1 message(s)
[+87.80s] DEBUG: Cancel authentication
[+87.80s] DEBUG: Session pid=975: Sending SIGTERM
[+87.80s] DEBUG: Greeter start authentication for andrew
[+87.80s] DEBUG: Session pid=1122: Started with service 'lightdm', username 'andrew'
[+87.80s] DEBUG: Session pid=975: Terminated with signal 15
[+87.80s] DEBUG: Session: Failed during authentication
[+87.80s] DEBUG: Seat seat0: Session stopped
[+87.81s] DEBUG: Session pid=1122: Got 1 message(s) from PAM
[+87.81s] DEBUG: Prompt greeter with 1 message(s)
[+91.65s] DEBUG: Continue authentication
[+91.67s] DEBUG: Session pid=1122: Authentication complete with return value 0: Success
[+91.67s] DEBUG: Authenticate result for user andrew: Success
[+91.67s] DEBUG: User andrew authorized
[+91.68s] DEBUG: Greeter requests session xfce
[+91.68s] DEBUG: Seat seat0: Failed to find session configuration xfce
[+91.68s] DEBUG: Seat seat0: Can't find session 'xfce'
[+97.60s] DEBUG: Greeter start authentication for andrew
[+97.60s] DEBUG: Session pid=1126: Started with service 'lightdm', username 'andrew'
[+97.61s] DEBUG: Session pid=1126: Got 1 message(s) from PAM
[+97.61s] DEBUG: Prompt greeter with 1 message(s)
[+106.43s] DEBUG: Seat seat0 changes active session to
So, my question is how can I stop lightdm from trying to use xfce? I already tried apt purge
it, but it was apparently not enough.
Final update: I have deleted Elementary OS from this machine and installed Ubuntu instead. As such I will never know what the fix was, or if this was fixable. Sorry
pantheon-xsession-settings