Thursday, May 2, 2024
 Popular · Latest · Hot · Upcoming
34
rated 0 times [  34] [ 0]  / answers: 1 / hits: 186466  / 3 Years ago, thu, august 5, 2021, 3:29:36

I installed gdm for a while as my display manager, and after removing it, lightdm does not start by itself. I instead have to login to a tty, and run sudo start lightdm.



Running dpkg-reconfigure lightdm does not work either:



dpkg-maintscript-helper: warning: environment variable DPKG_MAINTSCRIPT_NAME missing
dpkg-maintscript-helper: warning: environment variable DPKG_MAINTSCRIPT_PACKAGE missing


I've also tried reinstalling lightdm completely, but it does not work as well



My /var/log/boot.log has the following lines:



* Starting LightDM Display Manager                                                                                                                  
* Starting ACPI daemon
* Starting anac(h)ronistic cron
* Starting save kernel messages
* Stopping LightDM Display Manager

More From » boot

 Answers
3

Run a terminal and enter cat /etc/X11/default-display-manager. Probably says lightdm if you recently uninstalled GDM. /etc/init/lightdm.conf doesn't accept lightdm as a setting - however, /usr/bin/lightdm or /usr/sbin/lightdm work. So open /etc/X11/default-display-manager in your favorite text editor and replace whatever is there with the following line:



/usr/bin/lightdm



or



/usr/sbin/lightdm



Reboot and lightdm should start and bring you to the logon screen as usual.


[#42374] Saturday, August 7, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
rofity

Total Points: 182
Total Questions: 98
Total Answers: 115

Location: Albania
Member since Sat, Jan 7, 2023
1 Year ago
;