At some point, in the past, I must have disabled lightdm
service with:
systemctl disable lightdm.service
or something similar on my Debian with Cinnamon desktop.
Unfortunately, I will now need it, but running:
systemctl start lightdm.service
every time the computer boots up does not make me happy, so...
How do I re-enable the lightdm
service? Because just running:
systemctl enable lightdm.service
yields to the following error:
Synchronizing state of lightdm.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable lightdm
The unit files have no installation config (WantedBy=, RequiredBy=, Also=,
Alias= settings in the [Install] section, and DefaultInstance= for template
units). This means they are not meant to be enabled using systemctl.
Possible reasons for having this kind of units are:
• A unit may be statically enabled by being symlinked from another unit's
.wants/ or .requires/ directory.
• A unit's purpose may be to act as a helper for some other unit which has
a requirement dependency on it.
• A unit may be started when needed via activation (socket, path, timer,
D-Bus, udev, scripted systemctl call, ...).
• In case of template units, the unit is meant to be enabled with some
instance name specified.
Also tried before:
dpkg-reconfigure lightdm
to no avail.
update-alternatives: error: no alternatives for display-manager.service
– Philipp Ludwig Dec 09 '20 at 10:09