📖 ~1 min read
Table of contents
Symptom & Impact
Certificate checks, apt metadata validation, and scheduled jobs fail due to incorrect system time.
Environment & Reproduction
Ubuntu 18.04 on VMs or cloud instances with NTP disabled or unreachable time sources.
Root Cause Analysis
NTP service disabled, blocked UDP/123, or wrong timezone/RTC configuration causes drift.
Quick Triage
Run timedatectl status and date -u to confirm sync state and current offset.
Step-by-Step Diagnosis
Inspect systemd-timesyncd logs via journalctl -u systemd-timesyncd and verify upstream NTP reachability.

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

Solution – Alternative Approaches
Deploy chrony for environments needing tighter drift control and custom NTP peer policies.
Verification & Acceptance Criteria
timedatectl reports synchronized yes and time-sensitive workflows succeed.
Rollback Plan
Revert timezone and NTP configuration files to prior known-good settings.
Prevention & Hardening
Monitor clock drift and ensure firewall rules permit outbound NTP traffic.
Related Errors & Cross-Refs
certificate not yet valid, InRelease not valid yet, and token expiry/authentication failures.
Related tutorial: View the step-by-step tutorial for Ubuntu 18.04 LTS.
View all Ubuntu 18.04 LTS tutorials on the Tutorials Hub →
Browse all common problems & solutions on the Tutorials Hub.
References & Further Reading
man timedatectl, man systemd-timesyncd, and Ubuntu time synchronization docs.
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.