Unable to start ntpd.service

Clash 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!
ntp
add a comment |Â
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!
ntp
I'm not usingntpbut you can tryntpqinstead ofntpdabove.
â WinEunuuchs2Unix
Feb 25 at 20:45
add a comment |Â
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!
ntp
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
ntp
edited Feb 25 at 20:33
N0rbert
16.4k33377
16.4k33377
asked Feb 25 at 20:26
yyin
111
111
I'm not usingntpbut you can tryntpqinstead ofntpdabove.
â WinEunuuchs2Unix
Feb 25 at 20:45
add a comment |Â
I'm not usingntpbut you can tryntpqinstead ofntpdabove.
â 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
add a comment |Â
1 Answer
1
active
oldest
votes
up vote
0
down vote
On Ubuntu 16.04 LTS the ntp package contain:
- client and utilites -
/usr/bin/calc_tickadj,/usr/bin/ntpdc,/usr/bin/ntpq,/usr/bin/ntpsweep,/usr/bin/ntptrace,/usr/bin/update-leap. - 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
Sontpis both a client and a daemon? I am able to startntpbut can't startntpd, I can use the man page, it's just thatntpd.servicedoesn't exist.
â yyin
Feb 25 at 23:00
Yes, it contain both. Ubuntu 16.04 LTS man pageman ntpddoes not refer tontpd.service.
â N0rbert
Feb 26 at 9:14
add a comment |Â
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:
- client and utilites -
/usr/bin/calc_tickadj,/usr/bin/ntpdc,/usr/bin/ntpq,/usr/bin/ntpsweep,/usr/bin/ntptrace,/usr/bin/update-leap. - 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
Sontpis both a client and a daemon? I am able to startntpbut can't startntpd, I can use the man page, it's just thatntpd.servicedoesn't exist.
â yyin
Feb 25 at 23:00
Yes, it contain both. Ubuntu 16.04 LTS man pageman ntpddoes not refer tontpd.service.
â N0rbert
Feb 26 at 9:14
add a comment |Â
up vote
0
down vote
On Ubuntu 16.04 LTS the ntp package contain:
- client and utilites -
/usr/bin/calc_tickadj,/usr/bin/ntpdc,/usr/bin/ntpq,/usr/bin/ntpsweep,/usr/bin/ntptrace,/usr/bin/update-leap. - 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
Sontpis both a client and a daemon? I am able to startntpbut can't startntpd, I can use the man page, it's just thatntpd.servicedoesn't exist.
â yyin
Feb 25 at 23:00
Yes, it contain both. Ubuntu 16.04 LTS man pageman ntpddoes not refer tontpd.service.
â N0rbert
Feb 26 at 9:14
add a comment |Â
up vote
0
down vote
up vote
0
down vote
On Ubuntu 16.04 LTS the ntp package contain:
- client and utilites -
/usr/bin/calc_tickadj,/usr/bin/ntpdc,/usr/bin/ntpq,/usr/bin/ntpsweep,/usr/bin/ntptrace,/usr/bin/update-leap. - 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
On Ubuntu 16.04 LTS the ntp package contain:
- client and utilites -
/usr/bin/calc_tickadj,/usr/bin/ntpdc,/usr/bin/ntpq,/usr/bin/ntpsweep,/usr/bin/ntptrace,/usr/bin/update-leap. - 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
edited Feb 26 at 9:12
answered Feb 25 at 20:44
N0rbert
16.4k33377
16.4k33377
Sontpis both a client and a daemon? I am able to startntpbut can't startntpd, I can use the man page, it's just thatntpd.servicedoesn't exist.
â yyin
Feb 25 at 23:00
Yes, it contain both. Ubuntu 16.04 LTS man pageman ntpddoes not refer tontpd.service.
â N0rbert
Feb 26 at 9:14
add a comment |Â
Sontpis both a client and a daemon? I am able to startntpbut can't startntpd, I can use the man page, it's just thatntpd.servicedoesn't exist.
â yyin
Feb 25 at 23:00
Yes, it contain both. Ubuntu 16.04 LTS man pageman ntpddoes not refer tontpd.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
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
I'm not using
ntpbut you can tryntpqinstead ofntpdabove.â WinEunuuchs2Unix
Feb 25 at 20:45