Unable to start ntpd.service

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP








up vote
-1
down vote

favorite












First, I installed the ntp package through sudo apt-get install ntp



I accessed /etc/ntp.conf to change the servers to a few local ones based on country, then I saved and restarted it using sudo systemctl restart ntp then checked the status with sudo systemctl status ntp which is shown running.



I also did ntpq -p which gave the below result, I think this means the client is running:



 remote refid st t when poll reach delay offset jitter
==============================================================================
ntp.ubuntu.com .POOL. 16 p - 64 0 0.000 0.000 0.000
*time-a-g.nist.g .NIST. 1 u - 64 77 11.567 -7.287 7.636
-174.138.107.37 46.243.26.34 2 u 63 64 37 84.975 0.159 4.474
-ns3.weiszhostin 128.138.141.172 2 u 1 64 77 69.844 -11.884 6.043
+li290-38.member 128.138.141.172 2 u 65 64 37 43.448 -3.202 6.023
+pugot.canonical 145.238.203.14 2 u 61 64 37 79.540 -5.833 4.040
+alphyn.canonica 132.246.11.231 2 u 4 64 77 11.714 -5.017 7.244
+chilipepper.can 145.238.203.14 2 u 61 64 37 78.136 -4.269 4.769
+golem.canonical 145.238.203.14 2 u 55 64 37 81.139 -3.766 4.748


However, I can't seem to get the daemon to run. I found that out when I did sudo systemctl status ntpd, then it gave the below result:



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


I thought it was not started at first so I did sudo systemctl start ntpd, but it gave:



Failed to start ntpd.service: Unit ntpd.service not found.



That's when I found out something is seriously wrong, I checked ls -l /etc/init.d and found only ntp is in the list, ntpd can't be found. I also tried to reinstall ntp but that didn't help.



Any ideas? Thanks a lot!










share|improve this question























  • I'm not using ntp but you can try ntpq instead of ntpd above.
    – WinEunuuchs2Unix
    Feb 25 at 20:45














up vote
-1
down vote

favorite












First, I installed the ntp package through sudo apt-get install ntp



I accessed /etc/ntp.conf to change the servers to a few local ones based on country, then I saved and restarted it using sudo systemctl restart ntp then checked the status with sudo systemctl status ntp which is shown running.



I also did ntpq -p which gave the below result, I think this means the client is running:



 remote refid st t when poll reach delay offset jitter
==============================================================================
ntp.ubuntu.com .POOL. 16 p - 64 0 0.000 0.000 0.000
*time-a-g.nist.g .NIST. 1 u - 64 77 11.567 -7.287 7.636
-174.138.107.37 46.243.26.34 2 u 63 64 37 84.975 0.159 4.474
-ns3.weiszhostin 128.138.141.172 2 u 1 64 77 69.844 -11.884 6.043
+li290-38.member 128.138.141.172 2 u 65 64 37 43.448 -3.202 6.023
+pugot.canonical 145.238.203.14 2 u 61 64 37 79.540 -5.833 4.040
+alphyn.canonica 132.246.11.231 2 u 4 64 77 11.714 -5.017 7.244
+chilipepper.can 145.238.203.14 2 u 61 64 37 78.136 -4.269 4.769
+golem.canonical 145.238.203.14 2 u 55 64 37 81.139 -3.766 4.748


However, I can't seem to get the daemon to run. I found that out when I did sudo systemctl status ntpd, then it gave the below result:



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


I thought it was not started at first so I did sudo systemctl start ntpd, but it gave:



Failed to start ntpd.service: Unit ntpd.service not found.



That's when I found out something is seriously wrong, I checked ls -l /etc/init.d and found only ntp is in the list, ntpd can't be found. I also tried to reinstall ntp but that didn't help.



Any ideas? Thanks a lot!










share|improve this question























  • I'm not using ntp but you can try ntpq instead of ntpd above.
    – WinEunuuchs2Unix
    Feb 25 at 20:45












up vote
-1
down vote

favorite









up vote
-1
down vote

favorite











First, I installed the ntp package through sudo apt-get install ntp



I accessed /etc/ntp.conf to change the servers to a few local ones based on country, then I saved and restarted it using sudo systemctl restart ntp then checked the status with sudo systemctl status ntp which is shown running.



I also did ntpq -p which gave the below result, I think this means the client is running:



 remote refid st t when poll reach delay offset jitter
==============================================================================
ntp.ubuntu.com .POOL. 16 p - 64 0 0.000 0.000 0.000
*time-a-g.nist.g .NIST. 1 u - 64 77 11.567 -7.287 7.636
-174.138.107.37 46.243.26.34 2 u 63 64 37 84.975 0.159 4.474
-ns3.weiszhostin 128.138.141.172 2 u 1 64 77 69.844 -11.884 6.043
+li290-38.member 128.138.141.172 2 u 65 64 37 43.448 -3.202 6.023
+pugot.canonical 145.238.203.14 2 u 61 64 37 79.540 -5.833 4.040
+alphyn.canonica 132.246.11.231 2 u 4 64 77 11.714 -5.017 7.244
+chilipepper.can 145.238.203.14 2 u 61 64 37 78.136 -4.269 4.769
+golem.canonical 145.238.203.14 2 u 55 64 37 81.139 -3.766 4.748


However, I can't seem to get the daemon to run. I found that out when I did sudo systemctl status ntpd, then it gave the below result:



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


I thought it was not started at first so I did sudo systemctl start ntpd, but it gave:



Failed to start ntpd.service: Unit ntpd.service not found.



That's when I found out something is seriously wrong, I checked ls -l /etc/init.d and found only ntp is in the list, ntpd can't be found. I also tried to reinstall ntp but that didn't help.



Any ideas? Thanks a lot!










share|improve this question















First, I installed the ntp package through sudo apt-get install ntp



I accessed /etc/ntp.conf to change the servers to a few local ones based on country, then I saved and restarted it using sudo systemctl restart ntp then checked the status with sudo systemctl status ntp which is shown running.



I also did ntpq -p which gave the below result, I think this means the client is running:



 remote refid st t when poll reach delay offset jitter
==============================================================================
ntp.ubuntu.com .POOL. 16 p - 64 0 0.000 0.000 0.000
*time-a-g.nist.g .NIST. 1 u - 64 77 11.567 -7.287 7.636
-174.138.107.37 46.243.26.34 2 u 63 64 37 84.975 0.159 4.474
-ns3.weiszhostin 128.138.141.172 2 u 1 64 77 69.844 -11.884 6.043
+li290-38.member 128.138.141.172 2 u 65 64 37 43.448 -3.202 6.023
+pugot.canonical 145.238.203.14 2 u 61 64 37 79.540 -5.833 4.040
+alphyn.canonica 132.246.11.231 2 u 4 64 77 11.714 -5.017 7.244
+chilipepper.can 145.238.203.14 2 u 61 64 37 78.136 -4.269 4.769
+golem.canonical 145.238.203.14 2 u 55 64 37 81.139 -3.766 4.748


However, I can't seem to get the daemon to run. I found that out when I did sudo systemctl status ntpd, then it gave the below result:



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


I thought it was not started at first so I did sudo systemctl start ntpd, but it gave:



Failed to start ntpd.service: Unit ntpd.service not found.



That's when I found out something is seriously wrong, I checked ls -l /etc/init.d and found only ntp is in the list, ntpd can't be found. I also tried to reinstall ntp but that didn't help.



Any ideas? Thanks a lot!







ntp






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Feb 25 at 20:33









N0rbert

16.4k33377




16.4k33377










asked Feb 25 at 20:26









yyin

111




111











  • I'm not using ntp but you can try ntpq instead of ntpd above.
    – WinEunuuchs2Unix
    Feb 25 at 20:45
















  • I'm not using ntp but you can try ntpq instead of ntpd above.
    – WinEunuuchs2Unix
    Feb 25 at 20:45















I'm not using ntp but you can try ntpq instead of ntpd above.
– WinEunuuchs2Unix
Feb 25 at 20:45




I'm not using ntp but you can try ntpq instead of ntpd above.
– WinEunuuchs2Unix
Feb 25 at 20:45










1 Answer
1






active

oldest

votes

















up vote
0
down vote













On Ubuntu 16.04 LTS the ntp package contain:



  1. client and utilites - /usr/bin/calc_tickadj, /usr/bin/ntpdc, /usr/bin/ntpq, /usr/bin/ntpsweep, /usr/bin/ntptrace, /usr/bin/update-leap.

  2. daemon (/usr/sbin/ntpd), started by /etc/init.d/ntp.

You may restart the service with



sudo systemctl restart ntp.service


or



sudo service ntp restart


You can check that server is running with



sudo service ntp status
sudo systemctl status ntp.service
sudo netstat -pl | grep ntp


on my system it returns:



$ sudo netstat -pl | grep ntp
udp 0 0 10.0.2.15:ntp *:* 12303/ntpd
udp 0 0 localhost:ntp *:* 12303/ntpd
udp 0 0 *:ntp *:* 12303/ntpd
udp6 0 0 fe80::99a2:45db:62e:ntp [::]:* 12303/ntpd
udp6 0 0 ip6-localhost:ntp [::]:* 12303/ntpd
udp6 0 0 [::]:ntp [::]:* 12303/ntp


And it was started by systemd:



$ pstree -l -s -p -a 12303
systemd,1 splash
└─ntpd,12303 -p /var/run/ntpd.pid -g -u 121:129

$ ps -P 12303
PID PSR TTY STAT TIME COMMAND
12303 0 ? Ss 0:00 /usr/sbin/ntpd -p /var/run/ntpd.pid -g -u 121:129





share|improve this answer






















  • So ntp is both a client and a daemon? I am able to start ntp but can't start ntpd, I can use the man page, it's just that ntpd.service doesn't exist.
    – yyin
    Feb 25 at 23:00










  • Yes, it contain both. Ubuntu 16.04 LTS man page man ntpd does not refer to ntpd.service.
    – N0rbert
    Feb 26 at 9:14










Your Answer







StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "89"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
convertImagesToLinks: true,
noModals: false,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













 

draft saved


draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1009729%2funable-to-start-ntpd-service%23new-answer', 'question_page');

);

Post as a guest






























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes








up vote
0
down vote













On Ubuntu 16.04 LTS the ntp package contain:



  1. client and utilites - /usr/bin/calc_tickadj, /usr/bin/ntpdc, /usr/bin/ntpq, /usr/bin/ntpsweep, /usr/bin/ntptrace, /usr/bin/update-leap.

  2. daemon (/usr/sbin/ntpd), started by /etc/init.d/ntp.

You may restart the service with



sudo systemctl restart ntp.service


or



sudo service ntp restart


You can check that server is running with



sudo service ntp status
sudo systemctl status ntp.service
sudo netstat -pl | grep ntp


on my system it returns:



$ sudo netstat -pl | grep ntp
udp 0 0 10.0.2.15:ntp *:* 12303/ntpd
udp 0 0 localhost:ntp *:* 12303/ntpd
udp 0 0 *:ntp *:* 12303/ntpd
udp6 0 0 fe80::99a2:45db:62e:ntp [::]:* 12303/ntpd
udp6 0 0 ip6-localhost:ntp [::]:* 12303/ntpd
udp6 0 0 [::]:ntp [::]:* 12303/ntp


And it was started by systemd:



$ pstree -l -s -p -a 12303
systemd,1 splash
└─ntpd,12303 -p /var/run/ntpd.pid -g -u 121:129

$ ps -P 12303
PID PSR TTY STAT TIME COMMAND
12303 0 ? Ss 0:00 /usr/sbin/ntpd -p /var/run/ntpd.pid -g -u 121:129





share|improve this answer






















  • So ntp is both a client and a daemon? I am able to start ntp but can't start ntpd, I can use the man page, it's just that ntpd.service doesn't exist.
    – yyin
    Feb 25 at 23:00










  • Yes, it contain both. Ubuntu 16.04 LTS man page man ntpd does not refer to ntpd.service.
    – N0rbert
    Feb 26 at 9:14














up vote
0
down vote













On Ubuntu 16.04 LTS the ntp package contain:



  1. client and utilites - /usr/bin/calc_tickadj, /usr/bin/ntpdc, /usr/bin/ntpq, /usr/bin/ntpsweep, /usr/bin/ntptrace, /usr/bin/update-leap.

  2. daemon (/usr/sbin/ntpd), started by /etc/init.d/ntp.

You may restart the service with



sudo systemctl restart ntp.service


or



sudo service ntp restart


You can check that server is running with



sudo service ntp status
sudo systemctl status ntp.service
sudo netstat -pl | grep ntp


on my system it returns:



$ sudo netstat -pl | grep ntp
udp 0 0 10.0.2.15:ntp *:* 12303/ntpd
udp 0 0 localhost:ntp *:* 12303/ntpd
udp 0 0 *:ntp *:* 12303/ntpd
udp6 0 0 fe80::99a2:45db:62e:ntp [::]:* 12303/ntpd
udp6 0 0 ip6-localhost:ntp [::]:* 12303/ntpd
udp6 0 0 [::]:ntp [::]:* 12303/ntp


And it was started by systemd:



$ pstree -l -s -p -a 12303
systemd,1 splash
└─ntpd,12303 -p /var/run/ntpd.pid -g -u 121:129

$ ps -P 12303
PID PSR TTY STAT TIME COMMAND
12303 0 ? Ss 0:00 /usr/sbin/ntpd -p /var/run/ntpd.pid -g -u 121:129





share|improve this answer






















  • So ntp is both a client and a daemon? I am able to start ntp but can't start ntpd, I can use the man page, it's just that ntpd.service doesn't exist.
    – yyin
    Feb 25 at 23:00










  • Yes, it contain both. Ubuntu 16.04 LTS man page man ntpd does not refer to ntpd.service.
    – N0rbert
    Feb 26 at 9:14












up vote
0
down vote










up vote
0
down vote









On Ubuntu 16.04 LTS the ntp package contain:



  1. client and utilites - /usr/bin/calc_tickadj, /usr/bin/ntpdc, /usr/bin/ntpq, /usr/bin/ntpsweep, /usr/bin/ntptrace, /usr/bin/update-leap.

  2. daemon (/usr/sbin/ntpd), started by /etc/init.d/ntp.

You may restart the service with



sudo systemctl restart ntp.service


or



sudo service ntp restart


You can check that server is running with



sudo service ntp status
sudo systemctl status ntp.service
sudo netstat -pl | grep ntp


on my system it returns:



$ sudo netstat -pl | grep ntp
udp 0 0 10.0.2.15:ntp *:* 12303/ntpd
udp 0 0 localhost:ntp *:* 12303/ntpd
udp 0 0 *:ntp *:* 12303/ntpd
udp6 0 0 fe80::99a2:45db:62e:ntp [::]:* 12303/ntpd
udp6 0 0 ip6-localhost:ntp [::]:* 12303/ntpd
udp6 0 0 [::]:ntp [::]:* 12303/ntp


And it was started by systemd:



$ pstree -l -s -p -a 12303
systemd,1 splash
└─ntpd,12303 -p /var/run/ntpd.pid -g -u 121:129

$ ps -P 12303
PID PSR TTY STAT TIME COMMAND
12303 0 ? Ss 0:00 /usr/sbin/ntpd -p /var/run/ntpd.pid -g -u 121:129





share|improve this answer














On Ubuntu 16.04 LTS the ntp package contain:



  1. client and utilites - /usr/bin/calc_tickadj, /usr/bin/ntpdc, /usr/bin/ntpq, /usr/bin/ntpsweep, /usr/bin/ntptrace, /usr/bin/update-leap.

  2. daemon (/usr/sbin/ntpd), started by /etc/init.d/ntp.

You may restart the service with



sudo systemctl restart ntp.service


or



sudo service ntp restart


You can check that server is running with



sudo service ntp status
sudo systemctl status ntp.service
sudo netstat -pl | grep ntp


on my system it returns:



$ sudo netstat -pl | grep ntp
udp 0 0 10.0.2.15:ntp *:* 12303/ntpd
udp 0 0 localhost:ntp *:* 12303/ntpd
udp 0 0 *:ntp *:* 12303/ntpd
udp6 0 0 fe80::99a2:45db:62e:ntp [::]:* 12303/ntpd
udp6 0 0 ip6-localhost:ntp [::]:* 12303/ntpd
udp6 0 0 [::]:ntp [::]:* 12303/ntp


And it was started by systemd:



$ pstree -l -s -p -a 12303
systemd,1 splash
└─ntpd,12303 -p /var/run/ntpd.pid -g -u 121:129

$ ps -P 12303
PID PSR TTY STAT TIME COMMAND
12303 0 ? Ss 0:00 /usr/sbin/ntpd -p /var/run/ntpd.pid -g -u 121:129






share|improve this answer














share|improve this answer



share|improve this answer








edited Feb 26 at 9:12

























answered Feb 25 at 20:44









N0rbert

16.4k33377




16.4k33377











  • So ntp is both a client and a daemon? I am able to start ntp but can't start ntpd, I can use the man page, it's just that ntpd.service doesn't exist.
    – yyin
    Feb 25 at 23:00










  • Yes, it contain both. Ubuntu 16.04 LTS man page man ntpd does not refer to ntpd.service.
    – N0rbert
    Feb 26 at 9:14
















  • So ntp is both a client and a daemon? I am able to start ntp but can't start ntpd, I can use the man page, it's just that ntpd.service doesn't exist.
    – yyin
    Feb 25 at 23:00










  • Yes, it contain both. Ubuntu 16.04 LTS man page man ntpd does not refer to ntpd.service.
    – N0rbert
    Feb 26 at 9:14















So ntp is both a client and a daemon? I am able to start ntp but can't start ntpd, I can use the man page, it's just that ntpd.service doesn't exist.
– yyin
Feb 25 at 23:00




So ntp is both a client and a daemon? I am able to start ntp but can't start ntpd, I can use the man page, it's just that ntpd.service doesn't exist.
– yyin
Feb 25 at 23:00












Yes, it contain both. Ubuntu 16.04 LTS man page man ntpd does not refer to ntpd.service.
– N0rbert
Feb 26 at 9:14




Yes, it contain both. Ubuntu 16.04 LTS man page man ntpd does not refer to ntpd.service.
– N0rbert
Feb 26 at 9:14

















 

draft saved


draft discarded















































 


draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1009729%2funable-to-start-ntpd-service%23new-answer', 'question_page');

);

Post as a guest













































































Popular posts from this blog

Trouble downloading packages list due to a “Hash sum mismatch” error

How do so many people here on Academia.SE, and in general, afford lavish higher education programs?

How do I move numbers in filenames, in a batch renaming operation?