Time in Ubuntu 16.04 not updating from internet
I am new to Ubuntu 16.04 LTS. The time on my machine is not updating from internet. I have changed the CMOS battery and also installed ntp
and ntpdate
and ran sudo ntpdate ntp.ubuntu.com
. But none of these worked for me.
Running below command temporarily updates the time
sudo date -s "$(wget -qSO- --max-redirect=0 google.com 2>&1 | grep Date: | cut -d' ' -f5-8)Z"
Is there any other way to update my system time? I don't want to set it manually every session.
time
add a comment |
I am new to Ubuntu 16.04 LTS. The time on my machine is not updating from internet. I have changed the CMOS battery and also installed ntp
and ntpdate
and ran sudo ntpdate ntp.ubuntu.com
. But none of these worked for me.
Running below command temporarily updates the time
sudo date -s "$(wget -qSO- --max-redirect=0 google.com 2>&1 | grep Date: | cut -d' ' -f5-8)Z"
Is there any other way to update my system time? I don't want to set it manually every session.
time
Please mark the answer if it fixed your problem
– Efren
Jun 27 '18 at 3:22
@Efren No it didn't, I ended up pasting the above command in a script which runs everytime the machine starts
– Flying Gambit
Jun 28 '18 at 4:49
That's strange, so what was the timsyncd service status?
– Efren
Jun 28 '18 at 5:08
Sorry I no longer remember, shortly after this I was assigned a new windows machine
– Flying Gambit
Jun 28 '18 at 5:11
add a comment |
I am new to Ubuntu 16.04 LTS. The time on my machine is not updating from internet. I have changed the CMOS battery and also installed ntp
and ntpdate
and ran sudo ntpdate ntp.ubuntu.com
. But none of these worked for me.
Running below command temporarily updates the time
sudo date -s "$(wget -qSO- --max-redirect=0 google.com 2>&1 | grep Date: | cut -d' ' -f5-8)Z"
Is there any other way to update my system time? I don't want to set it manually every session.
time
I am new to Ubuntu 16.04 LTS. The time on my machine is not updating from internet. I have changed the CMOS battery and also installed ntp
and ntpdate
and ran sudo ntpdate ntp.ubuntu.com
. But none of these worked for me.
Running below command temporarily updates the time
sudo date -s "$(wget -qSO- --max-redirect=0 google.com 2>&1 | grep Date: | cut -d' ' -f5-8)Z"
Is there any other way to update my system time? I don't want to set it manually every session.
time
time
edited Jul 27 '17 at 12:13
Zanna
50.7k13136241
50.7k13136241
asked Jul 27 '17 at 11:55
Flying GambitFlying Gambit
1213
1213
Please mark the answer if it fixed your problem
– Efren
Jun 27 '18 at 3:22
@Efren No it didn't, I ended up pasting the above command in a script which runs everytime the machine starts
– Flying Gambit
Jun 28 '18 at 4:49
That's strange, so what was the timsyncd service status?
– Efren
Jun 28 '18 at 5:08
Sorry I no longer remember, shortly after this I was assigned a new windows machine
– Flying Gambit
Jun 28 '18 at 5:11
add a comment |
Please mark the answer if it fixed your problem
– Efren
Jun 27 '18 at 3:22
@Efren No it didn't, I ended up pasting the above command in a script which runs everytime the machine starts
– Flying Gambit
Jun 28 '18 at 4:49
That's strange, so what was the timsyncd service status?
– Efren
Jun 28 '18 at 5:08
Sorry I no longer remember, shortly after this I was assigned a new windows machine
– Flying Gambit
Jun 28 '18 at 5:11
Please mark the answer if it fixed your problem
– Efren
Jun 27 '18 at 3:22
Please mark the answer if it fixed your problem
– Efren
Jun 27 '18 at 3:22
@Efren No it didn't, I ended up pasting the above command in a script which runs everytime the machine starts
– Flying Gambit
Jun 28 '18 at 4:49
@Efren No it didn't, I ended up pasting the above command in a script which runs everytime the machine starts
– Flying Gambit
Jun 28 '18 at 4:49
That's strange, so what was the timsyncd service status?
– Efren
Jun 28 '18 at 5:08
That's strange, so what was the timsyncd service status?
– Efren
Jun 28 '18 at 5:08
Sorry I no longer remember, shortly after this I was assigned a new windows machine
– Flying Gambit
Jun 28 '18 at 5:11
Sorry I no longer remember, shortly after this I was assigned a new windows machine
– Flying Gambit
Jun 28 '18 at 5:11
add a comment |
2 Answers
2
active
oldest
votes
Ubuntu 16.04 works with timedatectl / timesyncd
Check the timseyncd service is ok: systemctl status systemd-timesyncd
Possibly something is blocking the service (eg: ntpd installed), so it avoids syncing to avoid conflicts.
Another possibility is that you may be running a VirtualBox and you may see an error like:
● systemd-timesyncd.service - Network Time Synchronization
Loaded: loaded (/lib/systemd/system/systemd-timesyncd.service; enabled; vendor preset: enabled)
Drop-In: /lib/systemd/system/systemd-timesyncd.service.d
└─disable-with-time-daemon.conf
Active: inactive (dead)
Condition: start condition failed at Mon 2018-02-12 17:40:50 AEDT; 1min 31s ago
ConditionFileIsExecutable=!/usr/sbin/VBoxService was not met
Docs: man:systemd-timesyncd.service(8)
This was a solution for this case: sudo VBoxService --timesync-set-start
.
Inspired from this issue with a similar error
add a comment |
In my case what I did is comment the line ConditionFileIsExecutable=!/usr/sbin/VBoxService
in file /lib/systemd/system/systemd-timesyncd.service.d/disable-with-time-daemon.conf
and then:
sudo systemctl daemon-reload
sudo systemctl start systemd-timesyncd
All started to work again.
add a comment |
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',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f940311%2ftime-in-ubuntu-16-04-not-updating-from-internet%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
Ubuntu 16.04 works with timedatectl / timesyncd
Check the timseyncd service is ok: systemctl status systemd-timesyncd
Possibly something is blocking the service (eg: ntpd installed), so it avoids syncing to avoid conflicts.
Another possibility is that you may be running a VirtualBox and you may see an error like:
● systemd-timesyncd.service - Network Time Synchronization
Loaded: loaded (/lib/systemd/system/systemd-timesyncd.service; enabled; vendor preset: enabled)
Drop-In: /lib/systemd/system/systemd-timesyncd.service.d
└─disable-with-time-daemon.conf
Active: inactive (dead)
Condition: start condition failed at Mon 2018-02-12 17:40:50 AEDT; 1min 31s ago
ConditionFileIsExecutable=!/usr/sbin/VBoxService was not met
Docs: man:systemd-timesyncd.service(8)
This was a solution for this case: sudo VBoxService --timesync-set-start
.
Inspired from this issue with a similar error
add a comment |
Ubuntu 16.04 works with timedatectl / timesyncd
Check the timseyncd service is ok: systemctl status systemd-timesyncd
Possibly something is blocking the service (eg: ntpd installed), so it avoids syncing to avoid conflicts.
Another possibility is that you may be running a VirtualBox and you may see an error like:
● systemd-timesyncd.service - Network Time Synchronization
Loaded: loaded (/lib/systemd/system/systemd-timesyncd.service; enabled; vendor preset: enabled)
Drop-In: /lib/systemd/system/systemd-timesyncd.service.d
└─disable-with-time-daemon.conf
Active: inactive (dead)
Condition: start condition failed at Mon 2018-02-12 17:40:50 AEDT; 1min 31s ago
ConditionFileIsExecutable=!/usr/sbin/VBoxService was not met
Docs: man:systemd-timesyncd.service(8)
This was a solution for this case: sudo VBoxService --timesync-set-start
.
Inspired from this issue with a similar error
add a comment |
Ubuntu 16.04 works with timedatectl / timesyncd
Check the timseyncd service is ok: systemctl status systemd-timesyncd
Possibly something is blocking the service (eg: ntpd installed), so it avoids syncing to avoid conflicts.
Another possibility is that you may be running a VirtualBox and you may see an error like:
● systemd-timesyncd.service - Network Time Synchronization
Loaded: loaded (/lib/systemd/system/systemd-timesyncd.service; enabled; vendor preset: enabled)
Drop-In: /lib/systemd/system/systemd-timesyncd.service.d
└─disable-with-time-daemon.conf
Active: inactive (dead)
Condition: start condition failed at Mon 2018-02-12 17:40:50 AEDT; 1min 31s ago
ConditionFileIsExecutable=!/usr/sbin/VBoxService was not met
Docs: man:systemd-timesyncd.service(8)
This was a solution for this case: sudo VBoxService --timesync-set-start
.
Inspired from this issue with a similar error
Ubuntu 16.04 works with timedatectl / timesyncd
Check the timseyncd service is ok: systemctl status systemd-timesyncd
Possibly something is blocking the service (eg: ntpd installed), so it avoids syncing to avoid conflicts.
Another possibility is that you may be running a VirtualBox and you may see an error like:
● systemd-timesyncd.service - Network Time Synchronization
Loaded: loaded (/lib/systemd/system/systemd-timesyncd.service; enabled; vendor preset: enabled)
Drop-In: /lib/systemd/system/systemd-timesyncd.service.d
└─disable-with-time-daemon.conf
Active: inactive (dead)
Condition: start condition failed at Mon 2018-02-12 17:40:50 AEDT; 1min 31s ago
ConditionFileIsExecutable=!/usr/sbin/VBoxService was not met
Docs: man:systemd-timesyncd.service(8)
This was a solution for this case: sudo VBoxService --timesync-set-start
.
Inspired from this issue with a similar error
answered Feb 12 '18 at 7:03
EfrenEfren
758
758
add a comment |
add a comment |
In my case what I did is comment the line ConditionFileIsExecutable=!/usr/sbin/VBoxService
in file /lib/systemd/system/systemd-timesyncd.service.d/disable-with-time-daemon.conf
and then:
sudo systemctl daemon-reload
sudo systemctl start systemd-timesyncd
All started to work again.
add a comment |
In my case what I did is comment the line ConditionFileIsExecutable=!/usr/sbin/VBoxService
in file /lib/systemd/system/systemd-timesyncd.service.d/disable-with-time-daemon.conf
and then:
sudo systemctl daemon-reload
sudo systemctl start systemd-timesyncd
All started to work again.
add a comment |
In my case what I did is comment the line ConditionFileIsExecutable=!/usr/sbin/VBoxService
in file /lib/systemd/system/systemd-timesyncd.service.d/disable-with-time-daemon.conf
and then:
sudo systemctl daemon-reload
sudo systemctl start systemd-timesyncd
All started to work again.
In my case what I did is comment the line ConditionFileIsExecutable=!/usr/sbin/VBoxService
in file /lib/systemd/system/systemd-timesyncd.service.d/disable-with-time-daemon.conf
and then:
sudo systemctl daemon-reload
sudo systemctl start systemd-timesyncd
All started to work again.
answered Jan 26 at 17:14
alexscmaralexscmar
19318
19318
add a comment |
add a comment |
Thanks for contributing an answer to Ask Ubuntu!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f940311%2ftime-in-ubuntu-16-04-not-updating-from-internet%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
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
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Please mark the answer if it fixed your problem
– Efren
Jun 27 '18 at 3:22
@Efren No it didn't, I ended up pasting the above command in a script which runs everytime the machine starts
– Flying Gambit
Jun 28 '18 at 4:49
That's strange, so what was the timsyncd service status?
– Efren
Jun 28 '18 at 5:08
Sorry I no longer remember, shortly after this I was assigned a new windows machine
– Flying Gambit
Jun 28 '18 at 5:11