Fix GDM Service Can't be Enabled on Arch Linux

time to read 1 min | 80 words

Today I just changing my desktop environtment from XFCE to Gnome 3. However GDM service always failed to be enabled. Everytime I ran sudo systemctl enable gdm, it always return Failed to execute operation: File exists.

This caused by another display manager still enabled, but I don’t know which one. Fortunately, running sudo systemctl enable gdm -f will force GDM to be enabled and another display manager will be disabled.

Removed symlink /etc/systemd/system/display-manager.service.
Created symlink from /etc/systemd/system/display-manager.service to /usr/lib/systemd/system/gdm.service.

Voila!!


Related Post:

  1. Apr 04, 2017 Skip Yaourt Prompts on Arch Linux
  2. Feb 07, 2015 PostgreSQL 9.4 failed to start on Manjaro