我先安装lightdm,后来换成gnome3时,就将lightdm卸载,换成gdm,用systemctl enable gdm.service 时,显示 Failed to execute operation: File exists,但在/usr/lib/systemd/system/下找不到lightdm.service。
重新安装lightdm后,用systemctl is-enabled lightdm.service,显示 enable。systemctl disable lightdm.service 后,显示 Removed symlink /etc/systemd/system/display-manager.service.
原来使用systemctl enable 一个登陆管理器时,会将启动文件链接到/etc/systemd/system/display-manager.service,所以现在好办了,可以直接删除该链接,重新执行一下即可。
本文出自 “EnjoyTechnologyEnjoyLife” 博客,请务必保留此出处http://jwang.blog.51cto.com/10307919/1729559
安装 gdm, 出现Failed to execute operation: File exists
原文:http://jwang.blog.51cto.com/10307919/1729559