I have no experience in this field but I have the task to synchronize a number of Ubuntu 18.04 machines on a local network not connected to the internet. I tried using chrony following the instructions found in this answer, but when I tried systemctl enable chronyd
I received this error
Failed to enable unit: Refusing to operate on linked unit file chronyd.service
I tried disabling it first, which showed
Removed /etc/systemd/system/chronyd.service.
Removed /etc/systemd/system/multi-user.target.wants/chrony.service
but now I can't start it or enable it, showing this error instead
Failed to enable unit: Unit file chronyd.service does not exist.
while I can see the file being present in the /etc/systemd/system/
folder.
I'm at loss here on what I should do. I tried uninstalling and installing chrony again without success.
systemctl daemon-reload
(sudo systemctl daemon-reload
if you're not logged in as root) to have systemd reload all unit files and recreate the entire dependency tree.chronyd.service
as missing. I purged chrony and reinstalled it. After applying the changes to the configuration I usedsudo systemctl daemon-reload
before enabling it, but it still showed the errorRefusing to operate on linked unit file chronyd.service
as beforeenable
still doesn't work. Weird!