I wish to configure Time Synchronisation on Ubuntu 16.04.4 but timedatectl give Failed to create bus connection: No such file or directory
I found the solution here: Thanks for the answer but I found the solution here: https://stackoverflow.com/questions/43907925/ubuntu-timedatectl-fails-in-docker-container
On a minimal Ubuntu 16.04 installation (like mine) the dbus package is not installed. So apt-get install dbus
resolved the problem.
timedatectl
trys to open serveral files/devies. One of them fails in your case. Start the timedatectl
with strace
and search for error messages:
$ strace -o /tmp/timedatectl.log timedatectl status
$ grep "^open(" /tmp/timedatectl.log
...
open("/etc/localtime", O_RDONLY|O_CLOEXEC) = 4
open("/dev/rtc", O_RDONLY|O_CLOEXEC) = 4
open("/etc/localtime", O_RDONLY|O_CLOEXEC) = 4
...
If you know which file/device creates the problem you can start fixing it.