Mu Ubuntu 20.04 存在时间同步问题。具体如下:
v@v-VirtualBox:~$ timedatectl
Local time: Sat 2021-05-01 09:30:44 EEST
Universal time: Sat 2021-05-01 06:30:44 UTC
RTC time: Fri 2021-04-30 16:05:23
Time zone: Europe/Riga (EEST, +0300)
System clock synchronized: no
NTP service: n/a
RTC in local TZ: no
v@v-VirtualBox:~$ sudo timedatectl set-ntp on
[sudo] password for v:
Failed to set ntp: NTP not supported
我可以调试什么?
v@v-VirtualBox:~$ apt-cache policy ntp chrony openntpd
ntp:
Installed: 1:4.2.8p12+dfsg-3ubuntu4.20.04.1
Candidate: 1:4.2.8p12+dfsg-3ubuntu4.20.04.1
Version table:
*** 1:4.2.8p12+dfsg-3ubuntu4.20.04.1 500
500 http://lv.archive.ubuntu.com/ubuntu focal-updates/universe amd64 Packages
500 http://security.ubuntu.com/ubuntu focal-security/universe amd64 Packages
100 /var/lib/dpkg/status
1:4.2.8p12+dfsg-3ubuntu4 500
500 http://lv.archive.ubuntu.com/ubuntu focal/universe amd64 Packages
chrony:
Installed: (none)
Candidate: 3.5-6ubuntu6.2
Version table:
3.5-6ubuntu6.2 500
500 http://lv.archive.ubuntu.com/ubuntu focal-updates/main amd64 Packages
500 http://security.ubuntu.com/ubuntu focal-security/main amd64 Packages
3.5-6ubuntu6 500
500 http://lv.archive.ubuntu.com/ubuntu focal/main amd64 Packages
openntpd:
Installed: (none)
Candidate: 1:6.2p3-4
Version table:
1:6.2p3-4 500
500 http://lv.archive.ubuntu.com/ubuntu focal/universe amd64 Packages
v@v-VirtualBox:~$
v@v-VirtualBox:~$ dpkg -l ntp chrony openntpd
dpkg-query: no packages found matching chrony
dpkg-query: no packages found matching openntpd
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-==============-================================-============-==============>
ii ntp 1:4.2.8p12+dfsg-3ubuntu4.20.04.1 amd64 Network Time P>
lines 1-6/6 (END)