LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How to get timezone data to update after repositories won't give updates anymore? (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-get-timezone-data-to-update-after-repositories-wont-give-updates-anymore-4175641761/)

FreEm1nD 11-04-2018 07:47 PM

How to get timezone data to update after repositories won't give updates anymore?
 
Hi,

I've recently learned that NTP doesn't has daylight saving time information as my system was pointing to external NTP servers (from my country) and to get the correct time I needed to update tzdata package with apt.

I have an old machine which is not working well with newer kernels with an almost legacy distro Ubuntu 14 LTS (old nvidia 7200 gs card won't compile proprietary drivers and nouveau gives some bugs).

How to get timezone data to update after repositories won't give updates anymore?

The reason I ask is because I'm curious and because I ingenuosly thought NTP would be enough.

Thank you!

frankbell 11-04-2018 08:06 PM

What steps did you take to verify that the update issue and timezone issue are related? I would expect the correct time to be set via NTP, not via apt, but I'm just shooting in the dark. If I'm wrong, I'd love to be corrected; it would mean I learned something.

I see that Ubuntu 14.04 LTS is supported through April 2019. Am I correct in concluding that you are updating the machine because of the issues you mentioned with newer kernels, or have I misread your post?

michaelk 11-04-2018 08:22 PM

Your correct ntp as well as your system clock is referenced to UTC and the timezone setting converts UTC to your local time.

Did your country recently change the day they switched as of this year from DST? If not then your problem might lie elsewhere. Are you willing to post your timezone?

There was a recent update to the TZ database but I would assume the repositories have been updated by now.

FreEm1nD 11-05-2018 06:23 AM

Yes, my country changed the day they switched DST as of this year (my country is Brazil, and the daylight saving time changed two times and reverted back to first decision because they thought it wouldn't be a good day)

The steps to fix where to add the repository for trusty-updates main in /etc/apt/sources.list , to apt-get update and to update this tzdata package, before that I was setting set-timezone America/Montevideo (which hasn't DST and is same GMT -3 here) and now I can set-timezone to America/Sao_Paulo and it works correctly.

2019 is right there and probably this old distro won't get more updates as it won't be supported anymore, and I was curious if there is an easy way after end of support to manage those dates

michaelk 11-05-2018 07:16 AM

Here is the source for the TZ database.

https://www.iana.org/time-zones
https://data.iana.org/time-zones/tz-link.html

FreEm1nD 11-05-2018 09:34 AM

I've now realized that the most automatic fix would be download ftp://ftp.iana.org/tz/tzdata-latest.tar.gz, extract and run make install

Thank you all!


All times are GMT -5. The time now is 01:33 PM.