How do you synchronise time in Ubuntu 20.04?

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

  1. concept21

    concept21 Active Member

    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:
    pelaaja@ryzen:~$ lsb_release -a
    No LSB modules are available.
    Distributor ID:    Ubuntu
    Description:    Ubuntu 20.04.3 LTS
    Release:    20.04
    Codename:    focal
    pelaaja@ryzen:~$ 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
    pelaaja@ryzen:~$ 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 Well-Known Member Staff Member Howtoforge Staff

    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.
     
  5. Jan-Paul Kleijn

    Jan-Paul Kleijn New Member

    In my case the installing of ntp and ntpdate (for creating an NTP server) caused the creation of various intertwined and strangely named ethernet interfaces. After uninstalling ntpdate these interfaces disappeared. I'm running Debian from a Proxmox bare metal installation, updated to Bullseye.
     

Share This Page