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
I'm at loss here on what I should do. I tried uninstalling and installing chrony again without success.
sudo systemctl daemon-reloadif you're not logged in as root) to have systemd reload all unit files and recreate the entire dependency tree.
chronyd.serviceas missing. I purged chrony and reinstalled it. After applying the changes to the configuration I used
sudo systemctl daemon-reloadbefore enabling it, but it still showed the error
Refusing to operate on linked unit file chronyd.serviceas before
enablestill doesn't work. Weird!