How do you synchronise time in Ubuntu 20.04?

Discussion in 'Installation/Configuration' started by concept21, Sep 28, 2021.

  1. concept21

    concept21 Active Member HowtoForge Supporter

    I find that Ubuntu 20.04 does not install ntp any more.

    Then, how do you manage time synchronisation in Ubuntu 20.04? :rolleyes:
     
  2. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    Add the universe repo to repositories. Install ntp and ntpdate.
    Code:
    [email protected]:~$ lsb_release -a
    No LSB modules are available.
    Distributor ID:    Ubuntu
    Description:    Ubuntu 20.04.3 LTS
    Release:    20.04
    Codename:    focal
    [email protected]:~$ apt policy ntp
    ntp:
      Asennettu: (ei mitään)
      Ehdokas:   1:4.2.8p12+dfsg-3ubuntu4.20.04.1
      Versiotaulukko:
         1:4.2.8p12+dfsg-3ubuntu4.20.04.1 500
            500 http://fi.archive.ubuntu.com/ubuntu focal-updates/universe amd64 Packages
            500 http://security.ubuntu.com/ubuntu focal-security/universe amd64 Packages
         1:4.2.8p12+dfsg-3ubuntu4 500
            500 http://fi.archive.ubuntu.com/ubuntu focal/universe amd64 Packages
    [email protected]:~$ apt policy ntpdate
    ntpdate:
      Asennettu: (ei mitään)
      Ehdokas:   1:4.2.8p12+dfsg-3ubuntu4.20.04.1
      Versiotaulukko:
         1:4.2.8p12+dfsg-3ubuntu4.20.04.1 500
            500 http://fi.archive.ubuntu.com/ubuntu focal-updates/universe amd64 Packages
            500 http://security.ubuntu.com/ubuntu focal-security/universe amd64 Packages
         1:4.2.8p12+dfsg-3ubuntu4 500
            500 http://fi.archive.ubuntu.com/ubuntu focal/universe amd64 Packages
     
    ahrasis likes this.
  3. Jesse Norell

    Jesse Norell ISPConfig Developer Staff Member ISPConfig Developer

    You probably do have something installed, maybe systemd-timesyncd, which is probably good enough for a hosting server. Hardware nodes that run virtual environments on them and use clustering may need to use something more precise like ntp or (I think, but verify) chrony.
     
  4. ahrasis

    ahrasis Well-Known Member HowtoForge Supporter

    They are working fine on my ISPConfig Ubuntu 20.04 server. @Taleman post should give you the clue.
     

Share This Page