No meu lubuntu 22.04 está ativo o serviço systemd-timesyncd
. Este é o status deste serviço:
> systemctl status systemd-timesyncd
# this is the output of the previous command:
● systemd-timesyncd.service - Network Time Synchronization
Loaded: loaded (/lib/systemd/system/systemd-timesyncd.service; enabled; vendor preset: enabled)
Active: active (running) since Thu 2023-07-06 12:21:43 CEST; 2min 54s ago
Docs: man:systemd-timesyncd.service(8)
Main PID: 1917 (systemd-timesyn)
Status: "Idle."
Tasks: 2 (limit: 2030)
Memory: 1.3M
CPU: 201ms
CGroup: /system.slice/systemd-timesyncd.service
└─1917 /lib/systemd/systemd-timesyncd
lug 06 12:21:55 ceia-te systemd-timesyncd[1917]: Timed out waiting for reply from 185.125.190.57:123 (ntp.ubuntu.com).
lug 06 12:22:05 ceia-te systemd-timesyncd[1917]: Timed out waiting for reply from 185.125.190.58:123 (ntp.ubuntu.com).
lug 06 12:22:15 ceia-te systemd-timesyncd[1917]: Timed out waiting for reply from 185.125.190.56:123 (ntp.ubuntu.com).
lug 06 12:22:25 ceia-te systemd-timesyncd[1917]: Timed out waiting for reply from 91.189.94.4:123 (ntp.ubuntu.com).
A saída mostra que o serviço está em execução e tenta se conectar ao servidor NTP ntp.ubuntu.com
, mas não recebe nenhuma resposta (consulte as mensagens Timed out waiting for reply from ntp.ubuntu.com
); este servidor pode ser acessado por ping, como podemos ver pela saída do seguinte comando:
> ping ntp.ubuntu.com
PING ntp.ubuntu.com (91.189.94.4) 56(84) bytes of data.
64 bytes from pugot.canonical.com (91.189.94.4): icmp_seq=1 ttl=53 time=30.0 ms
64 bytes from pugot.canonical.com (91.189.94.4): icmp_seq=2 ttl=53 time=29.8 ms
64 bytes from pugot.canonical.com (91.189.94.4): icmp_seq=3 ttl=53 time=29.8 ms
O firewall iptables
não está ativo:
> sudo iptables --list
Chain INPUT (policy ACCEPT)
target prot opt source destination
Chain FORWARD (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
Alguém pode me dizer por que o cliente timesyncd não recebe nenhuma resposta do servidor NTP ntp.ubuntu.com
?
Obrigado
O problema estava no provedor de serviços de Internet
Obrigado por seus comentários. Tentei me conectar a outra rede que é capaz de se conectar à Internet de outra maneira, em relação à rede que usei quando escrevi o post.
Por esta outra rede e sem nenhuma modificação no arquivo de configuração
/etc/systemd/timesyncd.conf
que é:o cliente NTP
systemd timesyncd
pode sincronizar a data do sistema com o servidor NTPntp.ubuntu.com
.Na verdade, o status do serviço
systemd-timesyncd.service
é o seguinte:Portanto, sem nenhuma modificação na configuração do lubuntu e sem instalar nenhum outro pacote, o sistema funciona corretamente.