π ~1 min read
Table of contents
Symptom & Impact
TLS certificate checks fail and apt/snap operations break due to incorrect system time.
Environment & Reproduction
Common on VMs without proper time sync source.
date -u
timedatectl
chronyc tracking 2>/dev/null || true
Root Cause Analysis
NTP not synchronized or host clock source unstable, causing significant drift.
Quick Triage
Check time service status and synchronization indicators.
timedatectl show-timesync --all
systemctl status systemd-timesyncd --no-pager
Step-by-Step Diagnosis
Measure drift and verify NTP server reachability.
timedatectl
resolvectl query time.cloudflare.com
journalctl -u systemd-timesyncd -n 80 --no-pager

Solution – Primary Fix
Enable NTP synchronization and restart timesync service.
Still having issues? Our IT Solutions & Services team can diagnose and resolve this for you. Get in touch for a free consultation.
sudo timedatectl set-ntp true
sudo systemctl restart systemd-timesyncd
timedatectl

Solution – Alternative Approaches
Use chrony for advanced environments with strict drift requirements.
sudo apt install chrony -y
sudo systemctl enable --now chrony
chronyc sources
Verification & Acceptance Criteria
System reports synchronized time and TLS operations succeed.
timedatectl status
sudo apt update
Rollback Plan
Revert to previous time service if chrony rollout causes conflicts.
sudo systemctl disable --now chrony
sudo systemctl enable --now systemd-timesyncd
Prevention & Hardening
Monitor drift and enforce NTP policy on all Ubuntu 24.04 hosts.
timedatectl status
chronyc tracking 2>/dev/null || true
Related Errors & Cross-Refs
Related errors include certificate is not yet valid and apt TLS handshake failures.
Related tutorial: View the step-by-step tutorial for Ubuntu 24.04 LTS.
View all Ubuntu 24.04 LTS tutorials on the Tutorials Hub β
Browse all common problems & solutions on the Tutorials Hub.
References & Further Reading
systemd-timesyncd and chrony documentation for Ubuntu.
Need Expert Help?
If you cannot resolve this yourself, our team offers hands-on Server Management, Managed IT Services, and flexible Support Plans. Contact us today β we respond within one business day.