astralinux:se:timesync

Не синхронизируется время на Astra Linux

Для синхронизации времени необходимо последовательно выполнить команды:

sudo apt purge ntp
sudo apt purge chrony
sudo timedatectl set-ntp true

После этого можно открыть файл конфигурации:

sudo nano /etc/systemd/timesyncd.conf

и отредактировать содержимое файла (снять # с параметров):

#  This file is part of systemd.
#
#  systemd is free software; you can redistribute it and/or modify it
#  under the terms of the GNU Lesser General Public License as published by
#  the Free Software Foundation; either version 2.1 of the License, or
#  (at your option) any later version.
#
# Entries in this file show the compile time defaults.
# You can change settings by editing this file.
# Defaults can be restored by simply deleting this file.
#
# See timesyncd.conf(5) for details.

[Time]
NTP=ru.pool.ntp.org
FallbackNTP=ru.pool.ntp.org 1.ru.pool.ntp.org 2.ru.pool.ntp.org 3.ru.pool.ntp.org ntp3.vniiftri.ru
RootDistanceMaxSec=5
PollIntervalMinSec=32
PollIntervalMaxSec=2048

Перезапустить демоны и запустить службу systemd-timesyncd

sudo systemctl daemon-reexec
sudo systemctl daemon-reload
sudo systemctl start systemd-timesyncd

Для устранения последующих проблем с синхронизацией часов:

# 
# 1. Останавливаем службу
sudo systemctl stop systemd-timesyncd.service

# 2. Очищаем накопленное состояние синхронизации
sudo rm -f /var/lib/systemd/timesync/clock

# 3. Заново запускаем службу
sudo systemctl start systemd-timesyncd.service
  • astralinux/se/timesync.txt
  • Последнее изменение: 2026/05/14 09:24
  • dragdrop