The scenario: I'm trying to set timezone on a docker container based on Ubuntu 18.04 docker image. Just pull the image and updated
> apt-get -y updateThe error:
When run
> timedatectlI get
> timedatectl: command not foundThe question: How to install timedatectl?
What I've tried so far: I tried to install timedatectl as follows
> apt-get -y install timedatectl
> Unable to locate package timedatectlThank you
21 Answer
As suggested in the comment, installed systemd package:
> apt-get install systemdtimedatectl is installed