Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Elementary OS - Hera 5.1 - Can't login - "Session returned error code 1" - Accidently removed zeitgeist*

I've accidently uninstalled zeitgeist by running sudo apt-get purge zeitgeist*

I can't login anymore. I've the following error message : "Session returned error code 1"

Error message from io.elementary.greeter

Observations :

  • It tests the password (if I don't tip the right one, it tells me wrong password)

  • I can login use the command line tty (by pressing Ctrl Alt F1).

  • When I try to run io.elementary.greeter, I've the error message "Unable to init server: Impossible to connect: Connection refused" (and it tells me it can't use GTK on this display but nevermind)

  • When I try the same command line with sudo, I've more errors : "dconf-warning **: 18:28:41.795: failed to commit changes to dconf: Impossible de lancer automatiquement D-bus sans $DISPLAY X11" (this last sentence meaning "Impossible to automaticly run D-bus without $DISPLAY X11")

If any of you know any solution instead of uninstalling the whole OS and reinstalling, I'll be realy thanksful.

like image 491
Grégoire BOUX Avatar asked May 06 '20 16:05

Grégoire BOUX


1 Answers

[ RESOLVED ]

Following this link that leads to this other link, I've repaired it.

2 steps :

1 - I've removed the .Xauthority file in my home directory and then I've run sudo apt-get update ; sudo apt-get upgrade

2 - I've run sudo apt-get install pantheon-xsession-settings and reboot (command reboot)

Now seems to work fine :-)

I hope it will help, GL HF ! ;-)

like image 111
Grégoire BOUX Avatar answered Oct 10 '22 11:10

Grégoire BOUX