ricardogabriel5
Posts: 5
Joined: Wed May 30, 2018 3:31 pm

The NTP service doesn't work on Raspberry Pi 3

Tue Mar 03, 2020 1:44 pm

Hi everybody!

In my Raspberry Pi 3 the NTP service doesn't work.

I have installed the NTP program with: sudo apt-get install ntp, but the service doesn't work.

When executing the command: sudo service ntp status

I get the following message:

● ntp.service
   Loaded: not-found (Reason: No such file or directory)
   Active: inactive (dead)

The operating system is Raspbian 8 (jessie).

How do I run the NTP service?

Regards,

User avatar
topguy
Posts: 6466
Joined: Tue Oct 09, 2012 11:46 am
Location: Trondheim, Norway

Re: The NTP service doesn't work on Raspberry Pi 3

Tue Mar 03, 2020 3:23 pm

Does "systemctl status ntp" give the same output ?

I just did the same as you and got

Code: Select all

pi@raspberrypi:~ $ systemctl status ntp
● ntp.service - Network Time Service
   Loaded: loaded (/lib/systemd/system/ntp.service; enabled; vendor preset: enabled)
   Active: active (running) since Tue 2020-03-03 16:21:52 CET; 16s ago
     Docs: man:ntpd(8)
 Main PID: 4330 (ntpd)
    Tasks: 2 (limit: 2200)
   Memory: 1.2M
   CGroup: /system.slice/ntp.service
           └─4330 /usr/sbin/ntpd -p /var/run/ntpd.pid -g -u 111:116
....
My system:

Code: Select all

pi@raspberrypi:~ $ lsb_release -a
No LSB modules are available.
Distributor ID:	Raspbian
Description:	Raspbian GNU/Linux 10 (buster)
Release:	10
Codename:	buster
"Jessie" is horribly outdated, you should really try to do a reinstall with Buster.

ricardogabriel5
Posts: 5
Joined: Wed May 30, 2018 3:31 pm

Re: The NTP service doesn't work on Raspberry Pi 3

Tue Mar 03, 2020 4:37 pm

topguy,

Does "systemctl status ntp" give the same output ?

Yes, I get the same output:

● ntp.service
Loaded: not-found (Reason: No such file or directory)
Active: inactive (dead)


My System:

lsb_release -a
No LSB modules are available.
Distributor ID: Raspbian
Description: Raspbian GNU/Linux 8.0 (jessie)
Release: 8.0
Codename: jessie


About the version of Rasbian, I can't update the operating system. I use seismology software, and the software developer suggests not updating the operating system.

jj_0
Posts: 113
Joined: Wed Jul 11, 2012 7:07 am

Re: The NTP service doesn't work on Raspberry Pi 3

Tue Mar 03, 2020 5:32 pm

What about systemd-timesyncd, the alternative to ntp?

User avatar
DougieLawson
Posts: 38883
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: The NTP service doesn't work on Raspberry Pi 3

Tue Mar 03, 2020 5:44 pm

You have to disable systemd-timesyncd to get ntp running.
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.

ricardogabriel5
Posts: 5
Joined: Wed May 30, 2018 3:31 pm

Re: The NTP service doesn't work on Raspberry Pi 3

Wed Mar 04, 2020 3:30 pm

DougieLawson wrote:
Tue Mar 03, 2020 5:44 pm
You have to disable systemd-timesyncd to get ntp running.
I disabled systemd-timesyncd and ntp service works now.

Code: Select all

# systemctl stop systemd-timesyncd
# systemctl disable systemd-timesyncd

Thanks!!!

ricardogabriel5
Posts: 5
Joined: Wed May 30, 2018 3:31 pm

Re: The NTP service doesn't work on Raspberry Pi 3

Wed Mar 04, 2020 3:35 pm

jj_0 wrote:
Tue Mar 03, 2020 5:32 pm
What about systemd-timesyncd, the alternative to ntp?

Yes. After I was able to run the ntp service, I removed ntp and I enabled the systemd-timesyncd service.

https://feeding.cloud.geek.nz/posts/tim ... d-systemd/

It worked very well too. :)

Thanks!!!

Return to “Troubleshooting”