Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Debian trixie Gnome環境で時計がずれている?

Debian trixie Gnome環境で時計がずれている?

発表:: 鹿児島Linux勉強会 2026.10向けに用意したが未発表
source:: https://codeberg.org/matoken/kagolug-2026-10/src/branch/main/slide/ntp.adoc

Avatar for Kenichiro MATOHARA

Kenichiro MATOHARA

October 18, 2026

More Decks by Kenichiro MATOHARA

Other Decks in Technology

Transcript

  1. cliで有効にしようとする $ timedatectl Local time: Fri 2026-10-16 18:28:14 JST Universal

    time: Fri 2026-10-16 09:28:14 UTC RTC time: Fri 2026-10-16 09:28:15 Time zone: Asia/Tokyo (JST, +0900) System clock synchronized: no NTP service: n/a RTC in local TZ: no 失敗 $ sudo timedatectl set-ntp true Failed to set ntp: NTP not supported 6
  2. パッケージが足りない? systemd-timesyncd が必要そうだが入っていない.ic `なので恐らく入 っていたけど消してしまった? $ dpkg -l | grep

    systemd-timesyncd ic systemd-timesyncd 257.8-1~deb13u2 md64 minimalistic service to synchronize local time with NTP servers a 手動で導入 $ sudo apt install systemd-timesyncd 7
  3. 有効になった $ timedatectl Local time: Fri 2026-10-16 18:32:41 JST Universal

    time: Fri 2026-10-16 09:32:41 UTC RTC time: Fri 2026-10-16 09:32:41 Time zone: Asia/Tokyo (JST, +0900) System clock synchronized: yes NTP service: active RTC in local TZ: no 8
  4. ntp server ntp serverは *.debian.pool.ntp.org を見に行っている 変更したい場合は /etc/systemd/timesyncd.conf で変更 $

    timedatectl timesync-status | grep Server Server: 162.159.200.1 (0.debian.pool.ntp.org) $ grep NTP /etc/systemd/timesyncd.conf #NTP= #FallbackNTP=0.debian.pool.ntp.org 1.debian.pool.ntp.org 2.debian.pool.ntp.org 3.debian.pool.ntp.org 11